public abstract class CommandLineTool
extends java.lang.Object
| Constructor and Description |
|---|
CommandLineTool() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getDescription()
Gives a human-readable description of this tool.
|
protected java.io.File |
parseInputDirectory(java.lang.String path) |
protected java.io.File |
parseInputFile(java.lang.String path) |
protected java.io.File |
parseOutputDirectory(java.lang.String path,
boolean allowExisting)
Parses an output directory path provided as a string argument.
|
protected java.io.File |
parseOutputFile(java.lang.String path) |
abstract void |
run()
Runs this tool.
|
void |
start(java.lang.String[] args) |
public final void start(java.lang.String[] args)
public abstract void run()
start(String[]). When
this method is called it can be assumed that arguments have already been
mapped to fields.protected java.io.File parseInputFile(java.lang.String path)
protected java.io.File parseInputDirectory(java.lang.String path)
protected java.io.File parseOutputFile(java.lang.String path)
protected java.io.File parseOutputDirectory(java.lang.String path,
boolean allowExisting)
allowExisting - When true, allow already existing directories to
be used.protected java.lang.String getDescription()