Package org.apache.any23.cli
Class ExtractorDocumentation
- java.lang.Object
- 
- org.apache.any23.cli.ExtractorDocumentation
 
- 
- 
Constructor SummaryConstructors Constructor Description ExtractorDocumentation()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprintError(String msg)Print an error message.voidprintExampleInput(String extractorName, ExtractorRegistry registry)Prints an example of input for the provided extractor.voidprintExampleOutput(String extractorName, ExtractorRegistry registry)Prints an output example for the given extractor.voidprintExtractorList(ExtractorRegistry registry)Prints the list of all the available extractor names, labels and supported mimetypes.voidprintReport(ExtractorRegistry registry)Prints a complete report on all the available extractors.voidrun()Runs the tool and retrieves the exit code.
 
- 
- 
- 
Method Detail- 
runpublic void run() throws ExceptionDescription copied from interface:ToolRuns the tool and retrieves the exit code.- Throws:
- Exception- if there is an error running the tool.
 
 - 
printErrorpublic void printError(String msg) Print an error message.- Parameters:
- msg- the error message to be printed
 
 - 
printExtractorListpublic void printExtractorList(ExtractorRegistry registry) Prints the list of all the available extractor names, labels and supported mimetypes.- Parameters:
- registry- the- ExtractorRegistrycontaining all extractors
 
 - 
printExampleInputpublic void printExampleInput(String extractorName, ExtractorRegistry registry) throws IOException Prints an example of input for the provided extractor.- Parameters:
- extractorName- the name of the extractor
- registry- the- ExtractorRegistrycontaining all extractors
- Throws:
- IOException- raised if no extractor is found with that name
 
 - 
printExampleOutputpublic void printExampleOutput(String extractorName, ExtractorRegistry registry) throws IOException, ExtractionException Prints an output example for the given extractor.- Parameters:
- extractorName- the extractor name
- registry- the- ExtractorRegistrycontaining all extractors
- Throws:
- IOException- raised if no extractor is found with that name
- ExtractionException- if there is an error duing extraction
 
 - 
printReportpublic void printReport(ExtractorRegistry registry) throws IOException, ExtractionException Prints a complete report on all the available extractors.- Parameters:
- registry- the- ExtractorRegistrycontaining all extractors
- Throws:
- IOException- raised if no extractor is found with that name
- ExtractionException- if there is an error duing extraction
 
 
- 
 
-