|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmorfologik.tools.FSABuildTool
public final class FSABuildTool
Convert from plain text input to a serialized FSA in any of the
available FSABuildTool.Formats.
| Nested Class Summary | |
|---|---|
static class |
FSABuildTool.Format
The serialization format to use for the binary output. |
| Field Summary | |
|---|---|
protected org.apache.commons.cli.Options |
options
Command line options. |
| Constructor Summary | |
|---|---|
FSABuildTool()
|
|
| Method Summary | |
|---|---|
static void |
checkSingleByte(String chr)
Check if the argument is a single byte after conversion using platform-default encoding. |
protected String |
dumpLine(byte[] line,
int length)
Dump input line, byte-by-byte. |
protected void |
go(org.apache.commons.cli.CommandLine line)
Command line entry point after parsing arguments. |
protected void |
go(String[] args)
Initializes application context. |
protected void |
initializeOptions(org.apache.commons.cli.Options options)
Override and initialize options. |
protected boolean |
isAvailable()
Is the tool available? true by default. |
static void |
main(String[] args)
Command line entry point. |
protected void |
printError(String msg)
Print an error without an exception. |
protected void |
printError(String msg,
Throwable t)
Print an error and an associated exception. |
protected void |
printUsage()
Prints usage (options). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.apache.commons.cli.Options options
| Constructor Detail |
|---|
public FSABuildTool()
| Method Detail |
|---|
protected void go(org.apache.commons.cli.CommandLine line)
throws Exception
Exception
protected String dumpLine(byte[] line,
int length)
public static void checkSingleByte(String chr)
protected void printUsage()
protected void initializeOptions(org.apache.commons.cli.Options options)
public static void main(String[] args)
throws Exception
Exceptionprotected final void go(String[] args)
protected void printError(String msg,
Throwable t)
protected void printError(String msg)
protected boolean isAvailable()
true by default.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||