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 AbstractRemoteComponent
maxProcessCount, processCountFields inherited from class 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 voidstartRemoteAnalyzer(RemoteAnalyzer remoteAnalyzer) Starts a remote analyzer server.Methods inherited from class AbstractRemoteComponent
buildJavaFork, getMaxProcessCount, getProcessCount, getRemoteComponent, isStandAloneModeSupported, setMaxProcessCount, startRemoteServer, waitForFreeProcessMethods inherited from class AbstractComponent
assertDeviceSupported, assertDocumentSupported, copySettings, extractSettings, isDeviceSupportedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
copySettings, extractSettingsMethods inherited from interface 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: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:
IOExceptionAnalyzerExceptionDocumentException
-