|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectWDYSEncrypt.WDYSEncryptedFileWriter
This class writes encrypted WDYS files, including a correct header and data padding.
Field Summary | |
protected BufferedOutputStream |
writer
The writer. |
Constructor Summary | |
WDYSEncryptedFileWriter(String filename,
long length)
Constructs a new file writer around the given file. |
Method Summary | |
void |
close()
Closes the file. |
void |
write8EncryptedDataBytes(byte[] octet)
Writes the next 8 bytes to the file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected BufferedOutputStream writer
Constructor Detail |
public WDYSEncryptedFileWriter(String filename, long length) throws IOException
filename
- The name of the encrypted file.length
- The length of the decypted data file, which we need for storing.Method Detail |
public void close() throws IOException
IOException
- When IO stuff goes wrong.public void write8EncryptedDataBytes(byte[] octet) throws IOException
octet
- The next 8 bytes to be written.
IOException
- When IO stuff goes wrong.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |