Package org.ghost4j.analyzer
Class AbstractAnalyzer
java.lang.Object
org.ghost4j.AbstractComponent
org.ghost4j.analyzer.AbstractAnalyzer
Abstract analyzer implementation. Contains methods that are common to the
different analyzer types
-
Field Summary
Fields inherited from class org.ghost4j.AbstractComponent
supportedDocumentClasses
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAnalyzes a given document and outputs result as a list of AnalysisItem objects.protected abstract List
<AnalysisItem> Methods inherited from class org.ghost4j.AbstractComponent
assertDeviceSupported, assertDocumentSupported, copySettings, extractSettings, isDeviceSupported
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ghost4j.Component
copySettings, extractSettings
-
Constructor Details
-
AbstractAnalyzer
public AbstractAnalyzer()
-
-
Method Details
-
analyze
public List<AnalysisItem> analyze(Document document) throws IOException, AnalyzerException, DocumentException Description copied from interface:Analyzer
Analyzes a given document and outputs result as a list of AnalysisItem objects.- Specified by:
analyze
in interfaceAnalyzer
- Parameters:
document
- Document to analyze. Document type may or may no be supported (support left to the analyze final implementation).- Returns:
- a List of AnalysisItem objects
- Throws:
IOException
AnalyzerException
DocumentException
-
run
protected abstract List<AnalysisItem> run(Document document) throws IOException, AnalyzerException, DocumentException
-