ro.raducora.utils.encryption.stream
Class DecryptedInputStream
java.lang.Object
|
+--java.io.InputStream
|
+--java.io.FilterInputStream
|
+--ro.raducora.utils.encryption.stream.DecryptedInputStream
- public class DecryptedInputStream
- extends java.io.FilterInputStream
- Author:
- Radu Coravu
Fields inherited from class java.io.FilterInputStream |
in |
Method Summary |
int |
read()
Read one byte. |
int |
read(byte[] b)
Read. |
int |
read(byte[] b,
int off,
int len)
Read the byte[]. |
Methods inherited from class java.io.FilterInputStream |
available, close, mark, markSupported, reset, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DecryptedInputStream
public DecryptedInputStream(java.io.InputStream input,
StreamEncryptionKey key)
- Constructor.
- Parameters:
input
- the InputStream to decryptkey
- the key to use for decryption
read
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
- Read the byte[].
- Overrides:
read
in class java.io.FilterInputStream
java.io.IOException
read
public int read(byte[] b)
throws java.io.IOException
- Read.
- Overrides:
read
in class java.io.FilterInputStream
java.io.IOException
read
public int read()
throws java.io.IOException
- Read one byte.
- Overrides:
read
in class java.io.FilterInputStream
java.io.IOException
© Copyright Radu Coravu 2002 - 2004.