org.pdfsam.console.business.pdf.handlers
Class EncryptCmdExecutor

java.lang.Object
  extended by java.util.Observable
      extended by org.pdfsam.console.business.pdf.handlers.interfaces.AbstractCmdExecutor
          extended by org.pdfsam.console.business.pdf.handlers.EncryptCmdExecutor
All Implemented Interfaces:
CmdExecutor

public class EncryptCmdExecutor
extends AbstractCmdExecutor

Command executor for the encrypt command

Author:
Andrea Vacondio

Constructor Summary
EncryptCmdExecutor()
           
 
Method Summary
 void clean()
          Called after the execute to perform close/clean operations
 void execute(AbstractParsedCommand parsedCommand)
          Execute the tool command.
 
Methods inherited from class org.pdfsam.console.business.pdf.handlers.interfaces.AbstractCmdExecutor
arraysConcat, closePdfReader, closePdfStamper, closePdfWriter, getPdfFiles, resetPercentageOfWorkDone, setCompressionSettingOnStamper, setCompressionSettingOnWriter, setPdfVersionSettingOnWriter, setPdfVersionSettingOnWriter, setPercentageOfWorkDone, setWorkCompleted, setWorkIndeterminate
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncryptCmdExecutor

public EncryptCmdExecutor()
Method Detail

execute

public void execute(AbstractParsedCommand parsedCommand)
             throws ConsoleException
Description copied from interface: CmdExecutor
Execute the tool command. On error an exception is thrown.

Specified by:
execute in interface CmdExecutor
Specified by:
execute in class AbstractCmdExecutor
Parameters:
parsedCommand - command to be executed
Throws:
ConsoleException

clean

public void clean()
Description copied from interface: CmdExecutor
Called after the execute to perform close/clean operations