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 -
Method Summary
Modifier and TypeMethodDescriptionAnalyzes a given document and outputs result as a list of AnalysisItem objects.protected abstract List
<AnalysisItem> 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
-
Constructor Details
-
AbstractRemoteAnalyzer
public AbstractRemoteAnalyzer()
-
-
Method Details
-
run
protected abstract List<AnalysisItem> run(Document document) throws IOException, AnalyzerException, DocumentException -
startRemoteAnalyzer
Starts a remote analyzer server.- Parameters:
remoteAnalyzer
-- Throws:
AnalyzerException
-
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
-