March 2005
Beginner to intermediate
1254 pages
104h 21m
English
CipherInputStream
This class is an input stream that uses
a Cipher object to encrypt or decrypt the bytes it
reads from another stream. You must initialize the
Cipher object before passing it to the
CipherInputStream( ) constructor.
Figure 17-2. javax.crypto.CipherInputStream
public class CipherInputStream extends java.io.FilterInputStream { // Public Constructors public CipherInputStream(java.io.InputStream is, Cipher c); // Protected Constructors protected CipherInputStream(java.io.InputStream is); // Public Methods Overriding FilterInputStream public int available( ) throws java.io.IOException; public void close( ) throws java.io.IOException; public boolean markSupported( ); constant public int read( ) throws java.io.IOException; public int read(byte[ ] b) throws java.io.IOException; public int read(byte[ ] b, int off, int len) throws java.io.IOException; public long skip(long n) throws java.io.IOException; }
Read now
Unlock full access