Class PDFMetadataWorker
- java.lang.Object
-
- com.levigo.jadice.server.core.NodeWorker<T>
-
- com.levigo.jadice.server.core.StreamWorker<PDFMetadataNode>
-
- com.levigo.jadice.server.pdf.worker.PDFMetadataWorker
-
- All Implemented Interfaces:
QualifiedLogEventReceiver
,WorkerController<PDFMetadataNode>
,Runnable
public class PDFMetadataWorker extends StreamWorker<PDFMetadataNode>
Modifies meta data in PDF documents.- Since:
- jadice server 5.2.1.0
- See Also:
PDFMetadataNode
-
-
Constructor Summary
Constructors Constructor Description PDFMetadataWorker()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
toString(Document dom)
Writes aDocument
as a XML string.protected void
work(Stream stream)
Implement this method in order to work on a single stream.-
Methods inherited from class com.levigo.jadice.server.core.StreamWorker
accept, reject, work
-
Methods inherited from class com.levigo.jadice.server.core.NodeWorker
abort, abortNow, addInputBundle, addOutputBundle, doAbort, doAbortNow, error, error, error, fail, fail, fail, getController, getInputBundle, getInputBundles, getJob, getLimitSupport, getNode, getOutputBundle, getOutputBundles, getServerJob, getState, getStreamTransportFactory, getTransportSender, initialize, isAbortRequested, postWork, preWork, run, setDescriptor, setJob, toString, warn, warn, warn
-
-
-
-
Method Detail
-
work
protected void work(Stream stream) throws Throwable
Description copied from class:StreamWorker
Implement this method in order to work on a single stream.- Specified by:
work
in classStreamWorker<PDFMetadataNode>
- Parameters:
stream
- theStream
to work on- Throws:
Throwable
- in case of processing failure
-
toString
public static String toString(Document dom) throws TransformerException
Writes aDocument
as a XML string. This method is mainly public for unit test reasons.- Parameters:
dom
- the Document to serialize- Returns:
- the XML as String
- Throws:
TransformerException
- If an unrecoverable error occurs during the course of the transformation.
-
-