public class CipherInputStream
extends java.io.FilterInputStream
For example, if the Cipher is initialized for decryption, the CipherInputStream will attempt to read in data and decrypt them, before returning the decrypted data.
| Constructor and Description |
|---|
CipherInputStream(java.io.InputStream is,
BufferedBlockCipher cipher)
Constructs a CipherInputStream from an InputStream and a
BufferedBlockCipher.
|
CipherInputStream(java.io.InputStream is,
StreamCipher cipher) |
public CipherInputStream(java.io.InputStream is,
BufferedBlockCipher cipher)
public CipherInputStream(java.io.InputStream is,
StreamCipher cipher)
public int read()
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic int read(byte[] b)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in class java.io.FilterInputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available in class java.io.FilterInputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.FilterInputStreamjava.io.IOExceptionpublic boolean markSupported()
markSupported in class java.io.FilterInputStream