WDYSEncrypt
Class WDYSEncryptControl

java.lang.Object
  extended byWDYSEncrypt.WDYSEncryptControl

public class WDYSEncryptControl
extends Object

This class controls the encryption process. It makes sure the file is read in and fed to the encrypting object, and makes sure the encrypted file is written afterwards.

Version:
1
Author:
Berend "Kirk" Wouda
See Also:
WDYSEncrypter, WDYSDecryptedFileReader, WDYSEncryptedFileWriter

Constructor Summary
WDYSEncryptControl()
          Constructs a new decryption control object.
 
Method Summary
 void encrypt(String filename1, String filename2)
          Encrypts the given file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WDYSEncryptControl

public WDYSEncryptControl()
Constructs a new decryption control object.

Method Detail

encrypt

public void encrypt(String filename1,
                    String filename2)
             throws IOException,
                    WDYSEncryptException
Encrypts the given file.

Parameters:
filename1 - The name of the file to be read from (and encrypted).
filename2 - The name of the file to be written to.
Throws:
IOException - When IO stuff goes wrong.
WDYSEncryptException - When encrypt stuff goes wrong.