Package org.ghost4j.analyzer
Class AbstractAnalyzer
- java.lang.Object
-
- org.ghost4j.AbstractComponent
-
- org.ghost4j.analyzer.AbstractAnalyzer
-
public abstract class AbstractAnalyzer extends AbstractComponent implements Analyzer
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 Constructor Description AbstractAnalyzer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.List<AnalysisItem>analyze(Document document)Analyzes a given document and outputs result as a list of AnalysisItem objects.protected abstract java.util.List<AnalysisItem>run(Document document)-
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
-
-
-
-
Method Detail
-
analyze
public java.util.List<AnalysisItem> analyze(Document document) throws java.io.IOException, AnalyzerException, DocumentException
Description copied from interface:AnalyzerAnalyzes a given document and outputs result as a list of AnalysisItem objects.- Specified by:
analyzein 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:
java.io.IOExceptionAnalyzerExceptionDocumentException
-
run
protected abstract java.util.List<AnalysisItem> run(Document document) throws java.io.IOException, AnalyzerException, DocumentException
- Throws:
java.io.IOExceptionAnalyzerExceptionDocumentException
-
-