Class SerializeDict
- java.lang.Object
-
- de.danielnaber.jwordsplitter.converter.SerializeDict
-
public final class SerializeDict extends java.lang.Object
This imports a plain text file and saves it in the jWordSplitter serialization format.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
SerializeDict()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static java.util.HashSet<java.lang.String>
getFileContents(java.io.File file)
static void
main(java.lang.String[] args)
Read a text file with one word per line and serialize the HashSet with all words to a binary file that can be part of jWordSplitter's JAR.
-
-
-
Method Detail
-
getFileContents
private static java.util.HashSet<java.lang.String> getFileContents(java.io.File file) throws java.io.IOException
- Throws:
java.io.IOException
-
main
public static void main(java.lang.String[] args) throws java.io.IOException
Read a text file with one word per line and serialize the HashSet with all words to a binary file that can be part of jWordSplitter's JAR.- Throws:
java.io.IOException
-
-