CipherInputStream


CipherInputStream javax.crypto

Java 1.4 closeable

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;   } 



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net