|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.any23.cli.ExtractorDocumentation
public class ExtractorDocumentation
This class provides some command-line documentation about available extractors and their usage.
Constructor Summary | |
---|---|
ExtractorDocumentation()
|
Method Summary | |
---|---|
static void |
main(String[] args)
Main method to access the class functionality. |
void |
printError(String msg)
Print an error message. |
void |
printExampleInput(String extractorName)
Prints an example of input for the provided extractor. |
void |
printExampleOutput(String extractorName)
Prints an output example for the given extractor. |
void |
printExtractorList()
Prints the list of all the available extractors. |
void |
printReport()
Prints a complete report on all the available extractors. |
void |
printUsage()
Prints the command line usage help. |
int |
run(String[] args)
Runs the tool and retrieves the exit code. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExtractorDocumentation()
Method Detail |
---|
public static void main(String[] args) throws ExtractionException, IOException
args
- allowed arguments
ExtractionException
IOException
public int run(String[] args)
Tool
run
in interface Tool
args
- command line arguments.
public void printUsage()
public void printError(String msg)
msg
- the error message to be printedpublic void printExtractorList()
public void printExampleInput(String extractorName) throws IOException
extractorName
- the name of the extractor
IOException
- raised if no extractor is found with that namepublic void printExampleOutput(String extractorName) throws IOException, ExtractionException
extractorName
- the extractor name
IOException
- raised if no extractor is found with that name
ExtractionException
public void printReport() throws IOException, ExtractionException
IOException
ExtractionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |