|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectWDYSDecrypt.WDYSEncryptedFileReader
This class reads encrypted WDYS files, isolates the encrypted data chunk and provides methods for data retrieval and stuff.
Field Summary | |
protected File |
encryptedfile
The file. |
protected long |
length
The length of the decrypted data chunk (stored seperately in the file). |
protected BufferedInputStream |
reader
The reader. |
Constructor Summary | |
WDYSEncryptedFileReader(String filename)
Constructs a new file reader around the given file. |
Method Summary | |
void |
close()
Closes the file. |
long |
getDecryptedDataLength()
Returns the length of the decrypted data chunk (it is stored seperately). |
long |
getEncryptedDataLength()
Returns the length of the encrypted data chunk. |
byte[] |
read4EncryptedDataBytes()
Reads and returns the next 4 bytes from the encrypted data chunk. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected long length
protected File encryptedfile
protected BufferedInputStream reader
Constructor Detail |
public WDYSEncryptedFileReader(String filename) throws IOException, WDYSDecryptException
filename
- The name of the encrypted file.
IOException
- When IO stuff goes wrong.
WDYSDecryptException
- When the header could not be skipped.Method Detail |
public void close() throws IOException
IOException
- When IO stuff goes wrong.public long getEncryptedDataLength()
public long getDecryptedDataLength()
public byte[] read4EncryptedDataBytes() throws IOException, WDYSDecryptException
IOException
- When IO stuff goes wrong.
WDYSDecryptException
- When the full 4 bytes could not be read.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |