T
- class of data sample the tool converts, for example .POSSample
public 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, validateFactoryArgs
getBasicHelp, getName, hasParams, validateAndParseParams
public String getShortDescription()
CmdLineTool
getShortDescription
in class CmdLineTool
public String getHelp()
CmdLineTool
getHelp
in class TypedCmdLineTool<T>
public String getHelp(String format)
TypedCmdLineTool
getHelp
in class TypedCmdLineTool<T>
format
- data formatpublic void run(String format, String[] args)
TypedCmdLineTool
run
in class TypedCmdLineTool<T>
format
- format to work withargs
- command line argumentsCopyright © 2015 The Apache Software Foundation. All rights reserved.