|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectWDYSDecrypt.WDYSDecryptedFileWriter
This class writes decrypted WDYS files.
Field Summary | |
protected long |
length
The length of the decrypted data chunk (stored seperately in the file). |
protected BufferedOutputStream |
writer
The writer. |
protected long |
written
The amount of bytes written. |
Constructor Summary | |
WDYSDecryptedFileWriter(String filename,
long length)
Constructs a new file writer around the given file, with the given length. |
Method Summary | |
void |
close()
Closes the file. |
void |
write8DecryptedDataBytes(byte[] octet)
Writes the next 8 bytes to the file, until the length is reached. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected long length
protected long written
protected BufferedOutputStream writer
Constructor Detail |
public WDYSDecryptedFileWriter(String filename, long length) throws IOException
filename
- The name of the encrypted file.length
- The length this file will be.Method Detail |
public void close() throws IOException
IOException
- When IO stuff goes wrong.public void write8DecryptedDataBytes(byte[] octet) throws IOException, WDYSDecryptException
octet
- The next 8 bytes to be written.
IOException
- When IO stuff goes wrong.
WDYSDecryptException
- When the indicated length is exceeded.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |