Package morfologik.tools
Class DictCompile
- java.lang.Object
-
- morfologik.tools.CliTool
-
- morfologik.tools.DictCompile
-
- All Implemented Interfaces:
java.util.concurrent.Callable<ExitStatus>
public class DictCompile extends CliTool
Decompiles morphological dictionary automaton back to source state.
-
-
Field Summary
Fields Modifier and Type Field Description private BinaryInput
binaryInput
private SerializationFormat
format
private java.nio.file.Path
input
private boolean
overwrite
private boolean
validate
-
Fields inherited from class morfologik.tools.CliTool
ARG_OVERWRITE, ARG_VALIDATE
-
-
Constructor Summary
Constructors Constructor Description DictCompile()
DictCompile(java.nio.file.Path input, boolean overwrite, boolean validate, boolean acceptBom, boolean acceptCr, boolean ignoreEmpty)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExitStatus
call()
private static int
countOf(byte separator, byte[] row)
private static int
indexOf(byte separator, byte[] row, int fromIndex)
static void
main(java.lang.String[] args)
-
Methods inherited from class morfologik.tools.CliTool
checkNotNull, main, main, printf, setCallSystemExit
-
-
-
-
Field Detail
-
input
private java.nio.file.Path input
-
validate
private boolean validate
-
format
private SerializationFormat format
-
overwrite
private boolean overwrite
-
binaryInput
private BinaryInput binaryInput
-
-
Method Detail
-
call
public ExitStatus call() throws java.lang.Exception
- Throws:
java.lang.Exception
-
countOf
private static int countOf(byte separator, byte[] row)
-
indexOf
private static int indexOf(byte separator, byte[] row, int fromIndex)
-
main
public static void main(java.lang.String[] args)
-
-