Revision 1000

tmp/org.txm.groovy.core/src/java/org/txm/groovy/core/InstallGroovyFiles.java (revision 1000)
65 65
		BundleUtils.copyFiles(bundle_id, "src/", "groovy", "", userDirectory);
66 66
		
67 67
		bundle_id = "org.txm.core";
68
		File scriptsPackageDirectory = new File(userDirectory, "org/txm/importer/scripts");
68
		File scriptsPackageDirectory = new File(userDirectory, "org/txm/scripts/importer");
69 69
		scriptsPackageDirectory.mkdirs();
70
		BundleUtils.copyFiles(bundle_id, "src/java/", "org/txm/importer/scripts", "", scriptsPackageDirectory);
70
		BundleUtils.copyFiles(bundle_id, "src/java/", "org/txm/scripts/importer", "", scriptsPackageDirectory);
71 71
		
72 72
		try {
73 73
			FileCopy.copyFiles(userDirectory, systemDirectory);
tmp/org.txm.groovy.core/src/groovy/org/txm/macro/annotation/AnnotationInjectionFilter.groovy (revision 1000)
2 2

  
3 3
import javax.xml.stream.*
4 4

  
5
import org.txm.scripts.importer.StaxIdentityParser
6
import org.txm.scripts.importer.filters.*
5
import org.txm.importer.StaxIdentityParser
6
import org.txm.importer.scripts.filters.*
7 7
import org.txm.scripts.importer.graal.PersonalNamespaceContext
8 8

  
9 9
/**
tmp/org.txm.groovy.core/src/groovy/org/txm/macro/annotation/InjectWordPropTableMacro.groovy (revision 1000)
1 1
package org.txm.macro.annotation;
2 2

  
3 3
import org.txm.utils.*
4
import org.txm.utils.io.
4
import org.txm.utils.io.*
5 5

  
6 6
import java.nio.charset.Charset
7 7

  
tmp/org.txm.groovy.core/src/groovy/org/txm/macro/prototypes/importer/XTZImporterMacro.groovy (revision 1000)
29 29

  
30 30
import javax.xml.stream.XMLStreamReader;
31 31

  
32
import org.txm.sw.RemoveTag;
33
import org.txm.scripts.importer.ApplyXsl2;
34
import org.txm.scripts.importer.ValidateXml;
32
import org.txm.scripts.importer.RemoveTag;
33
import org.txm.importer.ApplyXsl2;
34
import org.txm.importer.ValidateXml;
35 35
import org.txm.scripts.importer.xml.importer;
36 36
import org.txm.scripts.importer.xml.compiler;
37 37
import org.txm.scripts.importer.xml.pager;
......
40 40
import org.txm.utils.*
41 41
import org.txm.utils.io.*;
42 42
import org.txm.*;
43
import org.txm.scripts.importer.xmltxm.*;
43
import org.txm.importer.scripts.xmltxm.*;
44 44
import org.txm.utils.i18n.*;
45 45
import org.txm.metadatas.*;
46 46
import javax.xml.stream.*;
......
167 167
	println " stop if a XML source is malformed: "+stopIfMalformed
168 168
}
169 169

  
170
File allmetadatasfile = Metadatas.findMetadataFile(srcDir);
170
File allMetadataFile = Metadatas.findMetadataFile(srcDir);
171 171

  
172 172
// Apply XSL
173 173
if (MONITOR != null && MONITOR.isCanceled()) { return MONITOR.done(); }
......
230 230
//get metadatas values from CSV
231 231
Metadatas metadatas; // text metadatas
232 232

  
233
println "Trying to read metadatas from: "+allmetadatasfile
233
println "Trying to read metadatas from: "+allMetadataFile
234 234
if (MONITOR != null && MONITOR.isCanceled()) { return MONITOR.done(); }
235
if (allmetadatasfile.exists()) {
236
	File copy = new File(binDir, allmetadatasfile.getName())
237
	if (!FileCopy.copy(allmetadatasfile, copy)) {
238
		println "Error: could not create a copy of metadata file "+allmetadatasfile.getAbsoluteFile();
235
if (allMetadataFile.exists()) {
236
	File copy = new File(binDir, allMetadataFile.getName())
237
	if (!FileCopy.copy(allMetadataFile, copy)) {
238
		println "Error: could not create a copy of metadata file "+allMetadataFile.getAbsoluteFile();
239 239
		return;
240 240
	}
241 241
	metadatas = new Metadatas(copy, Toolbox.getMetadataEncoding(), Toolbox.getMetadataColumnSeparator(), Toolbox.getMetadataTextSeparator(), 1)
242 242
} else {
243
	println "no metadata file: "+allmetadatasfile
243
	println "no metadata file: "+allMetadataFile
244 244
}
245 245

  
246 246
if (MONITOR != null && MONITOR.isCanceled()) { return MONITOR.done(); }
tmp/org.txm.groovy.core/src/groovy/org/txm/macro/oriflamms/prepare/TEI2ProjectMacro.groovy (revision 1000)
6 6
import org.txm.rcp.swt.widget.parameters.*
7 7
import org.txm.*
8 8
import org.txm.utils.*
9
import org.txm.utils.io.
9
import org.txm.utils.io.*
10 10
import org.txm.scripts.importer.*
11 11
import org.txm.utils.logger.*
12 12
import org.txm.utils.zip.Zip;
tmp/org.txm.groovy.core/src/groovy/org/txm/macro/oriflamms/prepare/CopyXMLFiles.groovy (revision 1000)
11 11
import javax.xml.stream.events.DTD;
12 12
import javax.xml.stream.events.EntityReference;
13 13
import org.txm.utils.*
14
import org.txm.utils.io.
14
import org.txm.utils.io.*
15 15

  
16 16
public class CopyXMLFiles {
17 17
	File xmlFile;
tmp/org.txm.groovy.core/src/groovy/org/txm/macro/oriflamms/prepare/OntologiesProjection.groovy (revision 1000)
2 2

  
3 3
import java.util.regex.Pattern
4 4
import org.codehaus.groovy.transform.trait.SuperCallTraitTransformer;
5
import org.txm.scripts.importer.StaxIdentityParser;
5
import org.txm.importer.StaxIdentityParser;
6 6
import org.txm.scripts.importer.StaxParser;
7 7

  
8 8
class OntologiesProjection extends StaxIdentityParser {
tmp/org.txm.groovy.core/src/groovy/org/txm/macro/oriflamms/prepare/Project2XTZMacro.groovy (revision 1000)
8 8
import org.txm.rcp.swt.widget.parameters.*
9 9
import org.txm.*
10 10
import org.txm.utils.*
11
import org.txm.utils.io.
11
import org.txm.utils.io.*
12 12
import org.txm.scripts.importer.*
13 13
import org.txm.utils.logger.*
14 14
import org.txm.utils.xml.UpdateXSLParameters
tmp/org.txm.groovy.core/src/groovy/org/txm/macro/oriflamms/prepare/CoordsProjection.groovy (revision 1000)
1 1
package org.txm.macro.oriflamms.prepare
2 2

  
3
import org.txm.scripts.importer.StaxIdentityParser;
3
import org.txm.importer.StaxIdentityParser;
4 4
import org.txm.scripts.importer.StaxParser;
5 5

  
6 6
class CoordsProjection extends StaxIdentityParser {
tmp/org.txm.groovy.core/src/groovy/org/txm/macro/edition/BuildXTZEditions.groovy (revision 1000)
2 2

  
3 3
import org.txm.scripts.importer.*
4 4
import org.xml.sax.Attributes
5
import org.txm.scripts.importer.filters.*
5
import org.txm.importer.scripts.filters.*
6 6
import java.util.ArrayList
7 7
import javax.xml.parsers.*
8 8
import javax.xml.stream.*
tmp/org.txm.groovy.core/src/groovy/org/txm/macro/edition/BuildFacsEditions.groovy (revision 1000)
2 2

  
3 3
import org.txm.scripts.importer.*
4 4
import org.xml.sax.Attributes
5
import org.txm.scripts.importer.filters.*
5
import org.txm.importer.scripts.filters.*
6 6
import java.util.ArrayList
7 7
import javax.xml.parsers.*
8 8
import javax.xml.stream.*
tmp/org.txm.groovy.core/src/groovy/org/txm/macro/misc/EuroPress2XMLMacro.groovy (revision 1000)
6 6
import java.nio.charset.Charset
7 7
import java.text.DecimalFormat
8 8
import org.txm.utils.xml.DomUtils;
9
import org.txm.scripts.importer.ValidateXml;
9
import org.txm.importer.ValidateXml;
10 10
import org.w3c.tidy.Tidy
11 11
import groovy.util.XmlParser
12 12
import org.kohsuke.args4j.*
tmp/org.txm.groovy.core/src/groovy/org/txm/macro/transcription/HTML2TRS.groovy (revision 1000)
32 32
import java.util.List
33 33
import org.txm.scripts.importer.*
34 34
import org.xml.sax.Attributes
35
import org.txm.scripts.importer.filters.*
35
import org.txm.importer.scripts.filters.*
36 36
import java.io.File
37 37
import java.io.IOException
38 38
import java.util.ArrayList
tmp/org.txm.groovy.core/src/groovy/org/txm/macro/transcription/TextTranscription2TRS.groovy (revision 1000)
37 37

  
38 38
import org.txm.scripts.importer.*;
39 39
import org.xml.sax.Attributes;
40
import org.txm.scripts.importer.filters.*;
40
import org.txm.importer.scripts.filters.*;
41 41

  
42 42
import java.io.File;
43 43
import java.io.IOException;
tmp/org.txm.groovy.core/src/groovy/org/txm/macro/transcription/Transana2TRS.groovy (revision 1000)
37 37

  
38 38
import org.txm.scripts.importer.*;
39 39
import org.xml.sax.Attributes;
40
import org.txm.scripts.importer.filters.*;
40
import org.txm.importer.scripts.filters.*;
41 41
import org.txm.macro.transcription.FixTransanaTimings;
42 42
import org.txm.macro.transcription.HTML2TRS;
43 43

  
tmp/org.txm.groovy.core/src/groovy/org/txm/macro/transcription/TXT2TRS.groovy (revision 1000)
31 31

  
32 32
import org.txm.scripts.importer.*
33 33
import org.xml.sax.Attributes
34
import org.txm.scripts.importer.filters.*
34
import org.txm.importer.scripts.filters.*
35 35
import org.txm.utils.io.IOUtils;
36 36
import org.txm.utils.i18n.DetectBOM
37 37

  
tmp/org.txm.groovy.core/src/groovy/org/txm/macro/xml/ForceWordIDsMacro.groovy (revision 1000)
4 4
import org.kohsuke.args4j.*
5 5
import groovy.transform.Field
6 6
import org.txm.rcp.swt.widget.parameters.*
7
import org.txm.scripts.importer.StaxIdentityParser
7
import org.txm.importer.StaxIdentityParser
8 8
import javax.xml.stream.XMLStreamException
9 9

  
10 10
@Field @Option(name="inputFile", usage="input XML file", widget="FileOpen", required=true, def="input.xml")
tmp/org.txm.groovy.core/src/groovy/org/txm/macro/xml/ExecXSLMacro.groovy (revision 1000)
4 4
import org.kohsuke.args4j.*
5 5
import groovy.transform.Field
6 6
import org.txm.rcp.swt.widget.parameters.*
7
import org.txm.scripts.importer.ApplyXsl2;
7
import org.txm.importer.ApplyXsl2;
8 8

  
9 9
// BEGINNING OF PARAMETERS
10 10
@Field @Option(name="XSLFile", usage="an example file", widget="File", required=true, def="file.xsl")
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/prototypes/ClixTest.groovy (revision 1000)
30 30
// $LastChangedRevision: 2386 $
31 31
// $LastChangedBy: mdecorde $ 
32 32
//
33
package org.txm.test
33
package org.txm.scripts.test
34 34

  
35 35
/**
36 36
 * How to use ProcessBuilder to wrap an external program
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/prototypes/IndexPartition.groovy (revision 1000)
30 30
// $LastChangedRevision: 3283 $
31 31
// $LastChangedBy: mdecorde $ 
32 32
//
33
package org.txm.test
33
package org.txm.scripts.test
34 34

  
35 35
// imports des fonctions que l'on va utiliser
36 36
import org.txm.Toolbox
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/prototypes/WGet.groovy (revision 1000)
1
package org.txm.test
1
package org.txm.scripts.test
2 2

  
3 3
URL url = new URL("http://docs.codehaus.org/display/GROOVY/Simple+file+download+from+URL");
4 4
File outFile = new File("test.out")
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/prototypes/CooccurencesAndReferenceCorpus.groovy (revision 1000)
1
package org.txm.test
1
package org.txm.scripts.test
2 2
import org.txm.Toolbox
3 3
import org.txm.searchengine.cqp.corpus.*
4 4
import org.txm.searchengine.cqp.corpus.query.*
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/prototypes/ExecuteRscript.groovy (revision 1000)
1
package org.txm.test;
1
package org.txm.scripts.test;
2 2
/**
3 3
 * Main.
4 4
 *
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/prototypes/ParaContexts.groovy (revision 1000)
1
package org.txm.test
1
package org.txm.scripts.test
2 2

  
3 3
import java.util.ArrayList;
4 4
import org.txm.para.functions.*
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/prototypes/ProgressionSample.groovy (revision 1000)
1
package org.txm.test;
1
package org.txm.scripts.test;
2 2
import java.util.List;
3 3

  
4 4
import org.txm.progression.core.functions.Progression
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/prototypes/SomeRCode.groovy (revision 1000)
30 30
// $LastChangedRevision:$
31 31
// $LastChangedBy:$ 
32 32
//
33
package org.txm.test
33
package org.txm.scripts.test
34 34

  
35 35
import org.rosuda.REngine.REXP;
36 36
import org.txm.Toolbox;
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/prototypes/groovy4editor.groovy (revision 1000)
1
package org.txm.test;
1
package org.txm.scripts.test;
2 2

  
3 3
File currentFile = editor.getEditedFile()
4 4
String text = currentFile.getText("UTF-8")
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/prototypes/References.groovy (revision 1000)
46 46
// $LastChangedRevision: 2386 $
47 47
// $LastChangedBy: mdecorde $ 
48 48
//
49
package org.txm.test
49
package org.txm.scripts.test
50 50

  
51 51
//we import the packages containing the functions we are going to use
52 52
import org.txm.Toolbox
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/prototypes/mesures.groovy (revision 1000)
1
package org.txm.test
1
package org.txm.scripts.test
2 2

  
3 3
import org.txm.functions.mesures.*;
4 4
import org.txm.searchengine.cqp.corpus.Corpus;
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/prototypes/ReleaseFunctionsValidation.groovy (revision 1000)
1
package org.txm.test
1
package org.txm.scripts.test
2 2
//import org.txm.*
3 3
//import org.txm.functions.*
4 4
//import org.txm.functions.ca.*
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/prototypes/OpenAnEditor.groovy (revision 1000)
1
package org.txm.test
1
package org.txm.scripts.test
2 2

  
3 3
//import org.eclipse.ui.*;
4 4
//import org.txm.rcp.*;
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/prototypes/ShowSpecifHistogram.groovy (revision 1000)
46 46
// $LastChangedRevision: 1839 $
47 47
// $LastChangedBy: mdecorde $ 
48 48
//
49
package org.txm.test
49
package org.txm.scripts.test
50 50

  
51 51
// imports des fonctions que l'on va utiliser
52 52
import org.txm.Toolbox
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/prototypes/InjectMetadataCSV.groovy (revision 1000)
1
package org.txm.test;
1
package org.txm.scripts.test;
2 2
import org.txm.metadatas.*;
3 3

  
4 4
def txmfilesdir = new File("C:\\Documents and Settings\\alavrent\\xml\\metadata")
5 5
def outdir = new File("C:\\Documents and Settings\\alavrent\\xml\\metadata\\meta")
6 6
outdir.mkdir()
7
def allmetadatasfile = Metadatas.findMetadataFile(new File("C:\\Documents and Settings\\alavrent\\xml\\metadata"));
8
println "-- INJECT METADATA - from csv file: "+allmetadatasfile+" in directory: "+txmfilesdir
9
def metadatas = new Metadatas(allmetadatasfile, "UTF-8", ",","\"", 1)
7
def allMetadataFile = Metadatas.findMetadataFile(new File("C:\\Documents and Settings\\alavrent\\xml\\metadata"));
8
println "-- INJECT METADATA - from csv file: "+allMetadataFile+" in directory: "+txmfilesdir
9
def metadatas = new Metadatas(allMetadataFile, "UTF-8", ",","\"", 1)
10 10
if(metadatas != null)
11 11
{
12 12
	println("Injecting metadata: "+metadatas.getHeadersList()+" in texts of directory "+txmfilesdir)
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/prototypes/textselection.groovy (revision 1000)
1
package org.txm.test
1
package org.txm.scripts.test
2 2

  
3 3

  
4 4
//import the packages containing the functions we are going to use
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/prototypes/Concordances.groovy (revision 1000)
31 31
// $LastChangedBy: finnishgazelle $ 
32 32
//
33 33

  
34
package org.txm.test
34
package org.txm.scripts.test
35 35

  
36 36
// import the packages containing the functions we are going to use
37 37
import org.txm.Toolbox
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/prototypes/mesuresBP.groovy (revision 1000)
1
package org.txm.test;
1
package org.txm.scripts.test;
2 2
import org.txm.functions.mesures.*;
3 3
import org.txm.searchengine.cqp.corpus.Corpus;
4 4
import org.txm.Toolbox
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/prototypes/Informations.groovy (revision 1000)
30 30
// $LastChangedRevision: 2386 $
31 31
// $LastChangedBy: mdecorde $ 
32 32
//
33
package org.txm.test
33
package org.txm.scripts.test
34 34

  
35 35

  
36 36
// imports des fonctions que l'on va utiliser
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/prototypes/IndexSample.groovy (revision 1000)
31 31
// $LastChangedBy: mdecorde $
32 32
//
33 33

  
34
package org.txm.test
34
package org.txm.scripts.test
35 35

  
36 36
// imports des fonctions que l'on va utiliser
37 37
import org.txm.Toolbox
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/prototypes/tables.groovy (revision 1000)
1
package org.txm.test
1
package org.txm.scripts.test
2 2

  
3 3
import org.txm.stat.engine.r.*
4 4
import org.txm.stat.engine.r.data.*
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/prototypes/HelloWorld.groovy (revision 1000)
30 30
// $LastChangedRevision: 2386 $
31 31
// $LastChangedBy: mdecorde $ 
32 32
//
33
package org.txm.test
33
package org.txm.scripts.test
34 34

  
35 35
// TODO: Auto-generated Javadoc
36 36
/* (non-Javadoc)
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/prototypes/ControlUI.groovy (revision 1000)
1
package org.txm.test
1
package org.txm.scripts.test
2 2

  
3 3
//import org.txm.rcp.views.*
4 4

  
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/prototypes/Quotes.groovy (revision 1000)
1
package org.txm.test
1
package org.txm.scripts.test
2 2

  
3 3
println "Pre-balisage du discours direct"
4 4

  
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/prototypes/AFC.groovy (revision 1000)
30 30
// $LastChangedRevision:$
31 31
// $LastChangedBy:$ 
32 32
//
33
package org.txm.test
33
package org.txm.scripts.test
34 34

  
35 35
import org.txm.Toolbox
36 36
import org.txm.ca.core.functions.CA
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/prototypes/testSummary.groovy (revision 1000)
1
package org.txm.test
1
package org.txm.scripts.test
2 2

  
3 3
import org.txm.Toolbox
4 4
import org.txm.searchengine.cqp.core.functions.summary.Summary
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/prototypes/Cooccurrences.groovy (revision 1000)
30 30
// $LastChangedRevision: 2386 $
31 31
// $LastChangedBy: mdecorde $ 
32 32
//
33
package org.txm.test
33
package org.txm.scripts.test
34 34

  
35 35
// we import the packages containing the functions we are going to use
36 36
import org.txm.Toolbox
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/prototypes/HelloWorldR.groovy (revision 1000)
1
package org.txm.test;
1
package org.txm.scripts.test;
2 2

  
3 3
/**
4 4
 * 
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/prototypes/CQPBenchmark.groovy (revision 1000)
1
package org.txm.test
1
package org.txm.scripts.test
2 2

  
3 3

  
4 4
/**
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/nlp/SlashFile2TTRez.groovy (revision 1000)
1
package org.txm.tal
1
package org.txm.scripts.tal
2 2

  
3 3
class SlashFile2TTRez {
4 4
	public static boolean debug = true;
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/nlp/TnT.groovy (revision 1000)
25 25
// $LastChangedRevision: 2386 $
26 26
// $LastChangedBy: mdecorde $ 
27 27
//
28
package org.txm.scripts;
28
package org.txm.scripts.scripts;
29 29

  
30 30
import java.util.Date;
31 31
import java.util.Locale;
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/nlp/testTnT.groovy (revision 1000)
30 30
// $LastChangedRevision: 3185 $
31 31
// $LastChangedBy: mdecorde $ 
32 32
//
33
package org.txm.scripts;
33
package org.txm.scripts.scripts;
34 34

  
35 35
/**
36 36
 * test tnt Wrapper :
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/nlp/trainTT.groovy (revision 1000)
1
package org.txm.scripts;
1
package org.txm.scripts.scripts;
2 2

  
3 3
import java.util.ArrayList;
4 4
import org.txm.utils.treetagger.TreeTagger;
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/nlp/testTT.groovy (revision 1000)
30 30
// $LastChangedRevision: 2386 $
31 31
// $LastChangedBy: mdecorde $ 
32 32
//
33
package org.txm.scripts;
33
package org.txm.scripts.scripts;
34 34

  
35 35
import java.util.ArrayList;
36 36
import org.txm.utils.treetagger.TreeTagger;
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/nlp/Tagger.groovy (revision 1000)
1
package org.txm.tal
1
package org.txm.scripts.tal
2 2

  
3 3
class Tagger {
4 4
	File executablePath
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/nlp/BuildAfrLexicon.groovy (revision 1000)
25 25
// $LastChangedRevision: 2386 $
26 26
// $LastChangedBy: mdecorde $ 
27 27
//
28
package org.txm.scripts;
28
package org.txm.scripts.scripts;
29 29

  
30 30
import groovy.lang.GroovyClassLoader
31 31

  
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/nlp/ParseAndInject.groovy (revision 1000)
41 41
// $LastChangedRevision: 3087 $
42 42
// $LastChangedBy: mdecorde $ 
43 43
//
44
package org.txm.scripts;
44
package org.txm.scripts.scripts;
45 45

  
46 46
import java.io.BufferedReader;
47 47
import java.io.File;
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/nlp/TTrezToXml.groovy (revision 1000)
25 25
// $LastChangedRevision: 2386 $
26 26
// $LastChangedBy: mdecorde $ 
27 27
//
28
package org.txm.scripts;
28
package org.txm.scripts.scripts;
29 29

  
30 30
// TODO: Auto-generated Javadoc
31 31
/** The person. @deprecated @author mdecorde tranform Ttrez into a stand-off file */
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/nlp/XMLDomTokenizerAdapter.groovy (revision 1000)
1
package org.txm.tal
1
package org.txm.scripts.tal
2 2

  
3
import org.txm.scripts.importer.StaxIdentityParser;
3
import org.txm.importer.StaxIdentityParser;
4 4
import org.txm.scripts.importer.XPathResult;
5 5
import org.w3c.dom.*;
6 6

  
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/nlp/XMLStaxTokenizerAdapter.groovy (revision 1000)
1
package org.txm.tal
1
package org.txm.scripts.tal
2 2

  
3
import org.txm.scripts.importer.StaxIdentityParser;
3
import org.txm.importer.StaxIdentityParser;
4 4

  
5 5
/**
6 6
 * Experiment of Tokenizer that targets XPath results text
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/nlp/stanford/StanfordSegmenterMacro.groovy (revision 1000)
1 1
// STANDARD DECLARATIONS
2
package org.txm.tal.stanford
2
package org.txm.scripts.tal.stanford
3 3

  
4 4
import org.kohsuke.args4j.*
5 5
import groovy.transform.Field
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/nlp/stanford/StanfordTaggerMacro.groovy (revision 1000)
1
package org.txm.tal.stanford
1
package org.txm.scripts.tal.stanford
2 2
import edu.stanford.nlp.ling.*
3 3
import edu.stanford.nlp.process.*
4 4
import edu.stanford.nlp.tagger.maxent.*;
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/nlp/melt/MElt.groovy (revision 1000)
1 1

  
2
package org.txm.tal.melt
2
package org.txm.scripts.tal.melt
3 3

  
4 4
import java.io.File;
5 5
import java.io.BufferedReader;
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/nlp/melt/SxPipe.groovy (revision 1000)
1 1

  
2
package org.txm.tal.melt
2
package org.txm.scripts.tal.melt
3 3

  
4 4
import java.io.File;
5 5
import java.io.BufferedReader;
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/nlp/melt/MEltAnnotate.groovy (revision 1000)
25 25
// $LastChangedRevision: 2569 $
26 26
// $LastChangedBy: mdecorde $
27 27
//
28
package org.txm.tal.melt
28
package org.txm.scripts.tal.melt
29 29

  
30 30
import java.io.BufferedReader;
31 31
import java.io.File
......
39 39

  
40 40
import org.txm.Toolbox
41 41
import org.txm.scripts.importer.*
42
import org.txm.scripts.importer.cwb.*
42
import org.txm.importer.cwb.*
43 43
import org.txm.objects.*
44
import org.txm.scripts.importer.xmltxm.Annotate;
44
import org.txm.importer.xmltxm.Annotate;
45 45
import org.txm.tal.SlashFile2TTRez;
46 46
import org.txm.utils.LangDetector;
47 47
import org.txm.utils.treetagger.TreeTagger
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/nlp/melt/MEltTokenizer.groovy (revision 1000)
1
package org.txm.tal.melt
1
package org.txm.scripts.tal.melt
2 2

  
3 3
import org.txm.tal.XMLStaxTokenizerAdapter;
4 4

  
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/nlp/XMLStaxTokenizerAdapter2.groovy (revision 1000)
1
package org.txm.tal
1
package org.txm.scripts.tal
2 2

  
3 3
import java.net.URL;
4 4

  
......
8 8
import javax.xml.stream.XMLStreamReader;
9 9
import javax.xml.stream.XMLStreamWriter;
10 10

  
11
import org.txm.scripts.importer.StaxIdentityParser;
11
import org.txm.importer.StaxIdentityParser;
12 12
import org.txm.scripts.importer.graal.PersonalNamespaceContext;
13 13
import org.txm.tal.melt.SxPipe
14 14

  
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/nlp/PatchAfrlex.groovy (revision 1000)
25 25
// $LastChangedRevision: 2386 $
26 26
// $LastChangedBy: mdecorde $ 
27 27
//
28
package org.txm.scripts;
28
package org.txm.scripts.scripts;
29 29

  
30 30
// TODO: Auto-generated Javadoc
31 31
/**
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/swb/JoinCaesura.java (revision 1000)
1
package org.txm.scripts;
1
package org.txm.scripts.scripts;
2 2

  
3 3
import java.io.File;
4 4
import java.util.ArrayList;
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/swb/FixEditionPageIds.groovy (revision 1000)
1
package org.txm.scripts
1
package org.txm.scripts.scripts
2 2

  
3 3
import org.txm.utils.xml.DomUtils;
4 4

  
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/swb/AddHeadTailInDirectory.groovy (revision 1000)
1
package org.txm.sw
1
package org.txm.scripts.sw
2 2
// Copyright © - ENS de Lyon - http://textometrie.ens-lyon.fr
3 3
// @author sheiden
4 4
//
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/swb/ReplaceXmlDomNode.groovy (revision 1000)
25 25
// $LastChangedRevision:$
26 26
// $LastChangedBy:$ 
27 27
//
28
package org.txm.sw;
28
package org.txm.scripts.sw;
29 29

  
30 30
import java.io.File;
31 31

  
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/swb/SplitFileRegExp.groovy (revision 1000)
1
package org.txm.sw
1
package org.txm.scripts.sw
2 2

  
3 3
// PARAMETERS //
4 4

  
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/swb/FindUnclosedTag.groovy (revision 1000)
1
package org.txm.scripts
1
package org.txm.scripts.scripts
2 2

  
3 3
import javax.xml.stream.XMLInputFactory;
4 4
import javax.xml.stream.XMLStreamConstants;
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/swb/RegexCounter.groovy (revision 1000)
25 25
// $LastChangedRevision: 2386 $
26 26
// $LastChangedBy: mdecorde $ 
27 27
//
28
package org.txm.scripts
28
package org.txm.scripts.scripts
29 29
// TODO: Auto-generated Javadoc
30 30

  
31 31
/**
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/swb/RenameFilesInDirectoryByXpathElementContent.groovy (revision 1000)
1
package org.txm.sw
1
package org.txm.scripts.sw
2 2
// Copyright © - ENS de Lyon - http://textometrie.ens-lyon.fr
3 3
//
4 4
// This file is part of the TXM platform.
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/swb/RenameFilesInDirectoryByRegExp.groovy (revision 1000)
1
package org.txm.sw
1
package org.txm.scripts.sw
2 2
// Copyright © - ENS de Lyon - http://textometrie.ens-lyon.fr
3 3
//
4 4
// This file is part of the TXM platform.
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/swb/SearchReplaceXMLInDirectoryTrace.groovy (revision 1000)
1
package org.txm.sw
1
package org.txm.scripts.sw
2 2
// Copyright © - ENS de Lyon - http://textometrie.ens-lyon.fr
3 3
//
4 4
// This file is part of the TXM platform.
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/swb/SearchReplaceInDirectory.groovy (revision 1000)
1
package org.txm.sw
1
package org.txm.scripts.sw
2 2
// Copyright © - ENS de Lyon - http://textometrie.ens-lyon.fr
3 3
// @author sheiden
4 4
//
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/swb/EmptyFiles.groovy (revision 1000)
46 46
// $LastChangedRevision:$
47 47
// $LastChangedBy:$ 
48 48
//
49
package org.txm.scripts;
49
package org.txm.scripts.scripts;
50 50

  
51 51
// TODO: Auto-generated Javadoc
52 52
/* (non-Javadoc)
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/swb/SearchReplaceFromList.groovy (revision 1000)
1
package org.txm.sw
1
package org.txm.scripts.sw
2 2
// Copyright © - ENS de Lyon - http://textometrie.ens-lyon.fr
3 3
// @author mdecorde
4 4
//
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/swb/CountNumberOfChar.groovy (revision 1000)
1
package org.txm.scripts
1
package org.txm.scripts.scripts
2 2

  
3 3

  
4 4
import java.util.HashMap;
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/swb/RemoveTag.groovy (revision 1000)
1
package org.txm.sw
1
package org.txm.scripts.sw
2 2

  
3 3
import java.io.File;
4 4

  
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/swb/RenameFilesInDirectoryByXpathElementContentTrace.groovy (revision 1000)
1
package org.txm.sw
1
package org.txm.scripts.sw
2 2
// Copyright © - ENS de Lyon - http://textometrie.ens-lyon.fr
3 3
//
4 4
// This file is part of the TXM platform.
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/swb/SearchReplaceInDirectoryTrace.groovy (revision 1000)
1
package org.txm.sw
1
package org.txm.scripts.sw
2 2
// Copyright © - ENS de Lyon - http://textometrie.ens-lyon.fr
3 3
//
4 4
// This file is part of the TXM platform.
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/swb/ChangeEncoding.groovy (revision 1000)
1
package org.txm.sw
1
package org.txm.scripts.sw
2 2
// Copyright © - ENS de Lyon - http://textometrie.ens-lyon.fr
3 3
//
4 4
// This file is part of the TXM platform.
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/swb/Grep.groovy (revision 1000)
1
package org.txm.scripts
1
package org.txm.scripts.scripts
2 2
// Copyright © - ENS de Lyon - http://textometrie.ens-lyon.fr
3 3
//
4 4
// This file is part of the TXM platform.
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/clix/testPrintenv.groovy (revision 1000)
46 46
// $LastChangedRevision: 2386 $
47 47
// $LastChangedBy: mdecorde $ 
48 48
//
49
package org.txm.scripts.clix;
49
package org.txm.scripts.scripts.clix;
50 50
import java.io.File;
51 51
import java.util.Properties;
52 52

  
53
import org.txm.scripts.importer.filters.Filter;
53
import org.txm.importer.scripts.filters.Filter;
54 54
import org.txm.utils.ProcessBuilderBuilder;
55 55
import groovy.lang.GroovyClassLoader;
56 56

  
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/clix/Sh.java (revision 1000)
25 25
// $LastChangedRevision: 2529 $
26 26
// $LastChangedBy: mdecorde $ 
27 27
//
28
package org.txm.scripts;
28
package org.txm.scripts.scripts;
29 29

  
30 30
import java.util.Date;
31 31
import java.util.Locale;
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/clix/testSh.groovy (revision 1000)
46 46
// $LastChangedRevision: 2386 $
47 47
// $LastChangedBy: mdecorde $ 
48 48
//
49
package org.txm.scripts.clix;
49
package org.txm.scripts.scripts.clix;
50 50
import java.io.File;
51 51
import java.util.Properties;
52 52

  
53
import org.txm.scripts.importer.filters.Filter;
53
import org.txm.importer.scripts.filters.Filter;
54 54
import org.txm.utils.ProcessBuilderBuilder;
55 55
import groovy.lang.GroovyClassLoader;
56 56

  
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/clix/Ls.groovy (revision 1000)
25 25
// $LastChangedRevision: 2386 $
26 26
// $LastChangedBy: mdecorde $ 
27 27
//
28
package org.txm.scripts.clix;
28
package org.txm.scripts.scripts.clix;
29 29

  
30 30
import java.util.Date;
31 31
import java.text.DateFormat;
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/clix/testLs.groovy (revision 1000)
46 46
// $LastChangedRevision: 2386 $
47 47
// $LastChangedBy: mdecorde $ 
48 48
//
49
package org.txm.scripts.clix;
49
package org.txm.scripts.scripts.clix;
50 50
import java.io.File;
51 51
import java.util.Properties;
52 52

  
53
import org.txm.scripts.importer.filters.Filter;
53
import org.txm.importer.scripts.filters.Filter;
54 54
import org.txm.utils.ProcessBuilderBuilder;
55 55
import groovy.lang.GroovyClassLoader;
56 56

  
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/sql/HSQLFunctions.groovy (revision 1000)
25 25
// $LastChangedRevision: 3257 $
26 26
// $LastChangedBy: mdecorde $ 
27 27
//
28
package org.txm.scripts;
28
package org.txm.scripts.scripts;
29 29

  
30 30
import java.util.LinkedList;
31 31

  
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/sql/TxmToHSQL.groovy (revision 1000)
25 25
// $LastChangedRevision: 2386 $
26 26
// $LastChangedBy: mdecorde $ 
27 27
//
28
package org.txm.scripts;
28
package org.txm.scripts.scripts;
29 29

  
30 30
import org.txm.index.core.functions.Lexicon;
31 31
import org.txm.searchengine.cqp.corpus.Corpus;
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/sql/XMLFileStatistics.groovy (revision 1000)
1
package org.txm.scripts
1
package org.txm.scripts.scripts
2 2

  
3 3
import javax.xml.stream.*;
4 4

  
5
import org.txm.scripts.importer.StaxIdentityParser;
5
import org.txm.importer.StaxIdentityParser;
6 6

  
7 7

  
8 8
path = ""
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/sql/XMLStatistics.groovy (revision 1000)
1
package org.txm.scripts
1
package org.txm.scripts.scripts
2 2

  
3 3
import java.text.Collator;
4 4
import java.util.Locale;
5 5

  
6
import org.txm.scripts.importer.StaxIdentityParser;
6
import org.txm.importer.StaxIdentityParser;
7 7

  
8 8
class XMLStatistics extends StaxIdentityParser {
9 9

  
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/utils/Distance.groovy (revision 1000)
23 23
// $LastChangedRevision:$
24 24
// $LastChangedBy:$ 
25 25
//
26
package org.txm.scripts;
26
package org.txm.scripts.scripts;
27 27

  
28 28

  
29 29
// TODO: Auto-generated Javadoc
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/tigersearch/InjectAnnotations.groovy (revision 1000)
25 25
// $LastChangedRevision: 3400 $
26 26
// $LastChangedBy: mdecorde $ 
27 27
//
28
package org.txm.scripts.tigersearch;
28
package org.txm.scripts.scripts.tigersearch;
29 29

  
30 30
import java.text.DateFormat;
31 31
import java.util.Date;
32 32
import java.util.ArrayList;
33 33
import javax.xml.stream.*;
34 34
import java.net.URL;
35
import org.txm.scripts.importer.filters.*;
35
import org.txm.importer.scripts.filters.*;
36 36

  
37 37
// TODO: Auto-generated Javadoc
38 38
/**
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/tigersearch/InsertAnnotationsBeroul.groovy (revision 1000)
30 30
// $LastChangedRevision: 2386 $
31 31
// $LastChangedBy: mdecorde $ 
32 32
//
33
package org.txm.scripts.tigersearch;
33
package org.txm.scripts.scripts.tigersearch;
34 34

  
35 35
import org.txm.utils.treetagger.TreeTagger;
36
import org.txm.scripts.importer.xmltxm.*;
36
import org.txm.importer.scripts.xmltxm.*;
37 37

  
38 38
// TODO: Auto-generated Javadoc
39 39
/**
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/tigersearch/SubCorpusToSimpleCorpus.groovy (revision 1000)
25 25
// $LastChangedRevision:$
26 26
// $LastChangedBy:$ 
27 27
//
28
package org.txm.scripts.tigersearch;
28
package org.txm.scripts.scripts.tigersearch;
29 29

  
30 30
import org.txm.sw.ReplaceXmlDomNode;
31 31

  
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/tigersearch/BuildTTFile.groovy (revision 1000)
25 25
// $LastChangedRevision: 3400 $
26 26
// $LastChangedBy: mdecorde $ 
27 27
//
28
package org.txm.scripts.tigersearch;
28
package org.txm.scripts.scripts.tigersearch;
29 29

  
30 30
import java.text.DateFormat;
31 31
import java.util.Date;
32 32
import java.util.ArrayList;
33 33
import javax.xml.stream.*;
34 34
import java.net.URL;
35
import org.txm.scripts.importer.filters.*;
35
import org.txm.importer.scripts.filters.*;
36 36

  
37 37
// TODO: Auto-generated Javadoc
38 38
/**
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/setup/ChangeLog.groovy (revision 1000)
1
package org.txm.setup
1
package org.txm.scripts.setup
2 2

  
3
import org.txm.scripts.importer.ApplyXsl2;
3
import org.txm.importer.ApplyXsl2;
4 4

  
5 5
// build log.xml
6 6
// cd /home/mdecorde/workspace37/org.txm.core
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/setup/FixFeaturePluginDeclaration.groovy (revision 1000)
1
package org.txm.setup
1
package org.txm.scripts.setup
2 2

  
3 3
import org.txm.utils.io.FileCopy;
4 4

  
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/setup/FixQuotesInProperties.groovy (revision 1000)
1
package org.txm.setup
1
package org.txm.scripts.setup
2 2

  
3 3
File propDirFile = new File("/home/mdecorde/workspace441/org.txm.core/src/java/org/txm")
4 4

  
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/setup/FixPortalProfiles.groovy (revision 1000)
1
package org.txm.scripts
1
package org.txm.scripts.scripts
2 2

  
3 3
import groovy.xml.StreamingMarkupBuilder
4 4

  
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/setup/BuildFeatureFromProduct.groovy (revision 1000)
1
package org.txm.setup;
1
package org.txm.scripts.setup;
2 2

  
3 3
import groovy.xml.*
4 4

  
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/setup/BuildSplashVersion.groovy (revision 1000)
1
package org.txm.setup;
1
package org.txm.scripts.setup;
2 2

  
3 3
import java.awt.*;
4 4
import java.awt.image.*;
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/setup/MessagesToArchMessages.groovy (revision 1000)
1
package org.txm.setup
1
package org.txm.scripts.setup
2 2
rootDir = new File("/home/mdecorde/paquets")
3 3
linuxMessagesDir = new File(rootDir, "shared/debian/DEBIAN")
4 4
windowsMessagesDir = new File(rootDir, "archs/win")
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/setup/BuildTXMHTMLDoc.groovy (revision 1000)
1
package org.txm.setup
1
package org.txm.scripts.setup
2 2

  
3 3
import java.io.File;
4 4

  
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/setup/SVNStats.groovy (revision 1000)
1
package org.txm.setup
1
package org.txm.scripts.setup
2 2

  
3 3
File svnLog = new File("/home/mdecorde/SVN/ALLTXMSVN/txm/log.xml");
4 4
File outRev = new File("/home/mdecorde/TEMP/stats_rev.tsv")
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/commands/mesures/Diversity.groovy (revision 1000)
1
package org.txm.functions.mesures;
1
package org.txm.scripts.functions.mesures;
2 2

  
3 3
import java.io.IOException;
4 4
import java.util.ArrayList;
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/commands/mesures/Synthese.groovy (revision 1000)
1
package org.txm.functions.mesures;
1
package org.txm.scripts.functions.mesures;
2 2

  
3 3
public enum Synthese {
4 4
	
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/commands/mesures/Mesures.groovy (revision 1000)
1
package org.txm.functions.mesures;
1
package org.txm.scripts.functions.mesures;
2 2

  
3 3
import java.io.File;
4 4
import java.io.FileOutputStream;
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/commands/mesures/SyntheseBuilder.groovy (revision 1000)
1
package org.txm.functions.mesures;
1
package org.txm.scripts.functions.mesures;
2 2

  
3 3
import java.util.Arrays;
4 4

  
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/commands/mesures/Proportion.groovy (revision 1000)
1
package org.txm.functions.mesures;
1
package org.txm.scripts.functions.mesures;
2 2

  
3 3
import java.util.ArrayList;
4 4
import java.util.Arrays;
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/commands/mesures/Magnitude.groovy (revision 1000)
1
package org.txm.functions.mesures;
1
package org.txm.scripts.functions.mesures;
2 2

  
3 3
import java.util.ArrayList;
4 4
import java.util.Arrays;
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/commands/mesures/MesureResult.groovy (revision 1000)
1
package org.txm.functions.mesures;
1
package org.txm.scripts.functions.mesures;
2 2

  
3 3
public class MesureResult {
4 4
	public Mesure from;
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/commands/mesures/Mesure.groovy (revision 1000)
1
package org.txm.functions.mesures;
1
package org.txm.scripts.functions.mesures;
2 2

  
3 3
import java.util.ArrayList;
4 4

  
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/commands/mesures/PresenceRate.groovy (revision 1000)
1
package org.txm.functions.mesures;
1
package org.txm.scripts.functions.mesures;
2 2
import java.util.Arrays;
3 3

  
4 4
public class PresenceRate extends Proportion {
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/importer/StaxStackWriter.groovy (revision 1000)
1
package org.txm.scripts.importer
2

  
3
import java.nio.charset.Charset;
4

  
5
import javax.xml.namespace.NamespaceContext;
6
import javax.xml.stream.*;
7

  
8
import org.eclipse.core.runtime.Platform;
9

  
10
public class StaxStackWriter implements XMLStreamWriter {
11

  
12
	XMLStreamWriter writer;
13
	OutputStream output;
14
	def events = [];
15
	
16
	public StaxStackWriter(File file) {
17
		this(new BufferedOutputStream(new FileOutputStream(file)));
18
	}
19
	
20
	public StaxStackWriter(File file, String encoding) {
21
		this(new BufferedOutputStream(new FileOutputStream(file)), encoding);
22
	}
23
	
24
	public StaxStackWriter(OutputStream output) {
25
		this(output, "UTF-8");//create a new file
26
	}
27
	
28
	public StaxStackWriter(OutputStream output, String encoding) {
29
		XMLOutputFactory factory = XMLOutputFactory.newInstance();
30
		this.output = output
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff