WDYSEncrypt
Class WDYSEncryptControl
java.lang.Object
WDYSEncrypt.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WDYSEncryptControl
public WDYSEncryptControl()
- Constructs a new decryption control object.
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.