Révision 3464
TXM/trunk/org.txm.searchengine.cqp.core/src/org/txm/importer/cwb/CompressCQPIndexes.java (revision 3464) | ||
---|---|---|
27 | 27 |
// |
28 | 28 |
package org.txm.importer.cwb; |
29 | 29 |
|
30 |
import java.io.BufferedReader; |
|
31 | 30 |
import java.io.File; |
32 |
import java.io.FileInputStream; |
|
33 |
import java.io.FileOutputStream; |
|
34 | 31 |
import java.io.IOException; |
35 |
import java.io.InputStreamReader; |
|
36 |
import java.io.OutputStreamWriter; |
|
37 | 32 |
import java.util.ArrayList; |
38 | 33 |
import java.util.Arrays; |
39 | 34 |
|
40 |
import org.txm.core.messages.TXMCoreMessages; |
|
41 |
import org.txm.searchengine.cqp.core.messages.CQPSearchEngineCoreMessages; |
|
42 | 35 |
import org.txm.utils.OSDetector; |
43 |
import org.txm.utils.io.IOUtils; |
|
44 |
import org.txm.utils.logger.Log; |
|
45 | 36 |
|
46 | 37 |
/** |
47 | 38 |
* The Class CompressCQPIndexes. |
48 | 39 |
*/ |
49 | 40 |
public class CompressCQPIndexes { |
50 | 41 |
|
51 |
|
|
42 |
/** |
|
43 |
* |
|
44 |
* @param cqpToolsDirectory directory to the CWB tools |
|
45 |
* @param registryfile the corpus registry file |
|
46 |
* @param corpusid the corpus ID in UPPERCASE |
|
47 |
* @param dataDirectory directory to the CQP corpus indexes |
|
48 |
* @param txm081fix set to true for a corpus targeting TXM 0.8.1 |
|
49 |
* @return true if the corpus was compressed |
|
50 |
* |
|
51 |
* @throws IOException |
|
52 |
* @throws InterruptedException |
|
53 |
*/ |
|
52 | 54 |
public static boolean compressAll(File cqpToolsDirectory, File registryfile, String corpusid, File dataDirectory, boolean txm081fix) |
53 | 55 |
throws IOException, InterruptedException { |
54 | 56 |
//Runtime.getRuntime(). |
Formats disponibles : Unified diff