Class AbstractRemoteRenderer
java.lang.Object
org.ghost4j.AbstractComponent
org.ghost4j.AbstractRemoteComponent
org.ghost4j.renderer.AbstractRemoteRenderer
- All Implemented Interfaces:
Component, RemoteRenderer, Renderer
- Direct Known Subclasses:
SimpleRenderer
public abstract class AbstractRemoteRenderer
extends AbstractRemoteComponent
implements RemoteRenderer
-
Field Summary
Fields inherited from class AbstractRemoteComponent
maxProcessCount, processCountFields inherited from class AbstractComponent
supportedDocumentClasses -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionremoteRender(Document document, int begin, int end) Renders pages of a given document an outputs result as a list of PageRaster objects (on image per page).Renders a given document an outputs result as a list of Image objects (on image per page).Renders pages of a given document an outputs result as a list of Image objects (on image per page).protected abstract List<PageRaster> protected static voidstartRemoteRenderer(RemoteRenderer remoteRenderer) Starts a remote renderer serverMethods 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 RemoteRenderer
setMaxProcessCount
-
Constructor Details
-
AbstractRemoteRenderer
public AbstractRemoteRenderer()
-
-
Method Details
-
run
protected abstract List<PageRaster> run(Document document, int begin, int end) throws IOException, RendererException, DocumentException -
startRemoteRenderer
Starts a remote renderer server- Parameters:
remoteRenderer-- Throws:
RendererException
-
remoteRender
public List<PageRaster> remoteRender(Document document, int begin, int end) throws IOException, RendererException, DocumentException Description copied from interface:RemoteRendererRenders pages of a given document an outputs result as a list of PageRaster objects (on image per page).- Specified by:
remoteRenderin interfaceRemoteRenderer- Parameters:
document- Document to render. Document type may or may no be supported (support left to the render final implementation).begin- Index of the first page to renderend- Index of the last page to render- Returns:
- a List of PageRaster objects
- Throws:
IOExceptionRendererExceptionDocumentException
-
render
public List<Image> render(Document document) throws IOException, RendererException, DocumentException Description copied from interface:RendererRenders a given document an outputs result as a list of Image objects (on image per page).- Specified by:
renderin interfaceRenderer- Parameters:
document- Document to render. Document type may or may no be supported (support left to the render final implementation).- Returns:
- a List of Image objects
- Throws:
IOExceptionRendererExceptionDocumentException
-
render
public List<Image> render(Document document, int begin, int end) throws IOException, RendererException, DocumentException Description copied from interface:RendererRenders pages of a given document an outputs result as a list of Image objects (on image per page).- Specified by:
renderin interfaceRenderer- Parameters:
document- Document to render. Document type may or may no be supported (support left to the render final implementation).begin- Index of the first page to renderend- Index of the last page to render- Returns:
- a List of Image objects
- Throws:
IOExceptionRendererExceptionDocumentException
-