パッケージ nlp4j.util
クラス TextFileUtils
- java.lang.Object
-
- nlp4j.util.TextFileUtils
-
public class TextFileUtils extends Object
-
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 TextFileUtils()
-
メソッドの概要
すべてのメソッド staticメソッド concreteメソッド 修飾子とタイプ メソッド 説明 static void
sortLinesByValue(File inFile, File outFile)
static void
sortLinesByValue(File inFile, String inFileEncoding, File outFile, String outFileEncoding, boolean append)
static void
write(File outFile, List<String> data)
Writes a data to a file creating the file if it does not exist.static void
write(File outFile, List<String> data, String encoding, boolean append)
Writes a data to a file creating the file if it does not exist.
-
-
-
メソッドの詳細
-
sortLinesByValue
public static void sortLinesByValue(File inFile, File outFile) throws IOException
- 例外:
IOException
-
sortLinesByValue
public static void sortLinesByValue(File inFile, String inFileEncoding, File outFile, String outFileEncoding, boolean append) throws IOException
- 例外:
IOException
-
write
public static void write(File outFile, List<String> data) throws IOException
Writes a data to a file creating the file if it does not exist.- パラメータ:
outFile
- file the file to writedata
- the content to write- 例外:
IOException
- - in case of an I/O error
-
write
public static void write(File outFile, List<String> data, String encoding, boolean append) throws IOException
Writes a data to a file creating the file if it does not exist.- パラメータ:
outFile
- file the file to writedata
- the content to writeencoding
- the name of the requested charset, null means platform defaultappend
- if true, then the data will be added to the end of the file rather than overwriting- 例外:
IOException
- - in case of an I/O error
-
-