public final class FSABuildTool extends Object
FSABuildTool.Format
s.Modifier and Type | Class and Description |
---|---|
static class |
FSABuildTool.Format
The serialization format to use for the binary output.
|
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.cli.Options |
options
Command line options.
|
Constructor and Description |
---|
FSABuildTool() |
Modifier and Type | Method and Description |
---|---|
static byte |
checkSingleByte(String chr,
Charset charset)
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).
|
protected void go(org.apache.commons.cli.CommandLine line) throws Exception
Exception
protected String dumpLine(byte[] line, int length)
public static byte checkSingleByte(String chr, Charset charset)
protected void printUsage()
protected void initializeOptions(org.apache.commons.cli.Options options)
public static void main(String... args) throws Exception
Exception
protected final void go(String[] args)
protected void printError(String msg, Throwable t)
protected void printError(String msg)
protected boolean isAvailable()
true
by default.Copyright © 2016. All rights reserved.