Class PDFDecryptWorker
- java.lang.Object
-
- com.levigo.jadice.server.core.NodeWorker<T>
-
- com.levigo.jadice.server.core.StreamWorker<PDFDecryptNode>
-
- com.levigo.jadice.server.pdf.worker.PDFDecryptWorker
-
- All Implemented Interfaces:
QualifiedLogEventReceiver
,WorkerController<PDFDecryptNode>
,Runnable
public class PDFDecryptWorker extends StreamWorker<PDFDecryptNode>
Decrypts PDF documents using specified implementation.
-
-
Constructor Summary
Constructors Constructor Description PDFDecryptWorker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialize()
This method may be overridden, in order do perform initialization which is necessary before the actual work is started.protected boolean
isEncrypted(com.levigo.jadice.document.io.SeekableInputStream seekIS)
protected boolean
isEncryptionSupported(com.levigo.jadice.document.io.SeekableInputStream seekIS)
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, isAbortRequested, postWork, preWork, run, setDescriptor, setJob, toString, warn, warn, warn
-
-
-
-
Method Detail
-
initialize
public void initialize() throws JobException
Description copied from class:NodeWorker
This method may be overridden, in order do perform initialization which is necessary before the actual work is started.
Caveat: this method may be called synchronously by the server master thread. Therefore the work done within this call should be kept to an absolute minimum so as not to stall the job acceptor.- Overrides:
initialize
in classNodeWorker<PDFDecryptNode>
- Throws:
JobException
- in case of initialization failure
-
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<PDFDecryptNode>
- Parameters:
stream
- theStream
to work on- Throws:
Throwable
- in case of processing failure
-
isEncryptionSupported
protected boolean isEncryptionSupported(com.levigo.jadice.document.io.SeekableInputStream seekIS) throws Exception
- Throws:
Exception
-
-