public class EncryptInputStream extends CipherInputStream
CipherInputStream that transmits the given cipher's initialization vector (if any) at the
beginning of the stream.in| Constructor and Description |
|---|
EncryptInputStream(InputStream is,
Cipher c)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
available, close, markSupported, skipmarkpublic EncryptInputStream(InputStream is, Cipher c)
is - the InputStream to be encryptedc - the encryption Cipherpublic int read()
throws IOException
read in class CipherInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class CipherInputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class CipherInputStreamIOExceptionpublic void reset()
throws IOException
reset in class FilterInputStreamIOException