|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectWDYSEncrypt.WDYSDecryptedFileReader
This class reads decrypted WDYS files 4 bytes at a time.
Field Summary | |
protected File |
decryptedfile
The file. |
protected BufferedInputStream |
reader
The reader. |
Constructor Summary | |
WDYSDecryptedFileReader(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 file. |
byte[] |
read4DecryptedDataBytes()
Reads and returns the next 4 bytes from the decrypted data file. |
byte[] |
readDecryptedDataBytes(int amount)
Reads and returns the next given amount of bytes from the decrypted data file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected File decryptedfile
protected BufferedInputStream reader
Constructor Detail |
public WDYSDecryptedFileReader(String filename) throws IOException
filename
- The name of the decrypted file.
IOException
- When IO stuff goes wrong.Method Detail |
public void close() throws IOException
IOException
- When IO stuff goes wrong.public long getDecryptedDataLength()
public byte[] read4DecryptedDataBytes() throws IOException, WDYSEncryptException
IOException
- When IO stuff goes wrong.
WDYSEncryptException
- When the 4 bytes could not be supplied.public byte[] readDecryptedDataBytes(int amount) throws IOException, WDYSEncryptException
amount
- The amount of bytes to be read.
IOException
- When IO stuff goes wrong.
WDYSEncryptException
- When the given amount of bytes could not be
supplied.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |