org.sejda.impl.itext
Class DecryptTask

java.lang.Object
  extended by org.sejda.model.task.BaseTask<DecryptParameters>
      extended by org.sejda.impl.itext.DecryptTask
All Implemented Interfaces:
Task<DecryptParameters>

public class DecryptTask
extends BaseTask<DecryptParameters>

Task performing decrypt of a list of encrypted PdfSource

Author:
Andrea Vacondio

Constructor Summary
DecryptTask()
           
 
Method Summary
 void after()
          Called after the task is executed, can be used to close resources.
 void before(DecryptParameters parameters)
          Called before the actual execution of the task.
 void execute(DecryptParameters parameters)
          Executes the task with the input parameters
 
Methods inherited from class org.sejda.model.task.BaseTask
getNotifiableTaskMetadata
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecryptTask

public DecryptTask()
Method Detail

before

public void before(DecryptParameters parameters)
Description copied from interface: Task
Called before the actual execution of the task. Can be used to perform additional validation or initialization and to deny the execution in case some requirements are not met throwing a TaskException.

Parameters:
parameters - the parameters to be executed

execute

public void execute(DecryptParameters parameters)
             throws TaskException
Description copied from interface: Task
Executes the task with the input parameters

Throws:
TaskException

after

public void after()
Description copied from interface: Task
Called after the task is executed, can be used to close resources. This method is called in a finally block therefore it's always called even when the task execution throws an exception.



Copyright © 2013 sejda. All Rights Reserved.