T - class of data sample the tool converts, for example .POSSamplepublic abstract class AbstractConverterTool<T> extends TypedCmdLineTool<T>
type| Modifier | Constructor and Description |
|---|---|
protected |
AbstractConverterTool(Class<T> sampleType)
Constructor with type parameter.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHelp()
Retrieves a description on how to use the tool.
|
String |
getHelp(String format)
Retrieves a description on how to use the tool.
|
String |
getShortDescription()
Retrieves a short description of what the tool does.
|
void |
run(String format,
String[] args)
Executes the tool with the given parameters.
|
getBasicHelp, getStreamFactory, validateAllArgs, validateFactoryArgsgetBasicHelp, getName, hasParams, validateAndParseParamspublic String getShortDescription()
CmdLineToolgetShortDescription in class CmdLineToolpublic String getHelp()
CmdLineToolgetHelp in class TypedCmdLineTool<T>public String getHelp(String format)
TypedCmdLineToolgetHelp in class TypedCmdLineTool<T>format - data formatpublic void run(String format, String[] args)
TypedCmdLineToolrun in class TypedCmdLineTool<T>format - format to work withargs - command line argumentsCopyright © 2015 The Apache Software Foundation. All rights reserved.