Package org.ghost4j.modifier
Class SafeAppenderModifier
- java.lang.Object
-
- org.ghost4j.AbstractComponent
-
- org.ghost4j.AbstractRemoteComponent
-
- org.ghost4j.modifier.AbstractRemoteModifier
-
- org.ghost4j.modifier.SafeAppenderModifier
-
- All Implemented Interfaces:
Component
,Modifier
,RemoteModifier
public class SafeAppenderModifier extends AbstractRemoteModifier
Safe appender : appends a document to another one. Document types can be mixed (example: append PDF to PS). The modified document returned by the modify method is always the same as the source document provided. The parameter APPEND_DOCUMENT (the document to append to the source one) must be passed to the modify method. Important : this appender is safe even for PostScript document generated by diffrent softwares.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PARAMETER_APPEND_DOCUMENT
-
Fields inherited from class org.ghost4j.AbstractRemoteComponent
maxProcessCount, processCount
-
Fields inherited from class org.ghost4j.AbstractComponent
supportedDocumentClasses
-
-
Constructor Summary
Constructors Constructor Description SafeAppenderModifier()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
Main method used to start the modifier in standalone 'slave mode'.protected Document
run(Document source, java.util.Map<java.lang.String,java.io.Serializable> parameters)
-
Methods inherited from class org.ghost4j.modifier.AbstractRemoteModifier
modify, remoteModify, startRemoteModifier
-
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.modifier.RemoteModifier
setMaxProcessCount
-
-
-
-
Field Detail
-
PARAMETER_APPEND_DOCUMENT
public static final java.lang.String PARAMETER_APPEND_DOCUMENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws ModifierException
Main method used to start the modifier in standalone 'slave mode'.- Parameters:
args
-- Throws:
ModifierException
-
run
protected Document run(Document source, java.util.Map<java.lang.String,java.io.Serializable> parameters) throws ModifierException, DocumentException, java.io.IOException
- Specified by:
run
in classAbstractRemoteModifier
- Throws:
ModifierException
DocumentException
java.io.IOException
-
-