Package org.ghost4j.analyzer
Class AbstractRemoteAnalyzer
- java.lang.Object
-
- org.ghost4j.AbstractComponent
-
- org.ghost4j.AbstractRemoteComponent
-
- org.ghost4j.analyzer.AbstractRemoteAnalyzer
-
- All Implemented Interfaces:
Analyzer
,RemoteAnalyzer
,Component
- Direct Known Subclasses:
FontAnalyzer
,InkAnalyzer
public abstract class AbstractRemoteAnalyzer extends AbstractRemoteComponent implements RemoteAnalyzer
-
-
Field Summary
-
Fields inherited from class org.ghost4j.AbstractRemoteComponent
maxProcessCount, processCount
-
Fields inherited from class org.ghost4j.AbstractComponent
supportedDocumentClasses
-
-
Constructor Summary
Constructors Constructor Description AbstractRemoteAnalyzer()
-
Method Summary
All Methods Static 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)
protected static void
startRemoteAnalyzer(RemoteAnalyzer remoteAnalyzer)
Starts a remote analyzer server.-
Methods inherited from class org.ghost4j.AbstractRemoteComponent
buildJavaFork, getMaxProcessCount, getProcessCount, getRemoteComponent, isStandAloneModeSupported, setMaxProcessCount, startRemoteServer, waitForFreeProcess
-
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
-
Methods inherited from interface org.ghost4j.analyzer.RemoteAnalyzer
setMaxProcessCount
-
-
-
-
Method Detail
-
run
protected abstract java.util.List<AnalysisItem> run(Document document) throws java.io.IOException, AnalyzerException, DocumentException
- Throws:
java.io.IOException
AnalyzerException
DocumentException
-
startRemoteAnalyzer
protected static void startRemoteAnalyzer(RemoteAnalyzer remoteAnalyzer) throws AnalyzerException
Starts a remote analyzer server.- Parameters:
remoteAnalyzer
-- Throws:
AnalyzerException
-
analyze
public java.util.List<AnalysisItem> analyze(Document document) throws java.io.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:
java.io.IOException
AnalyzerException
DocumentException
-
-