Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

gnu.javax.net.ssl.provider
Class DigestInputStream  view DigestInputStream download DigestInputStream.java

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.FilterInputStream
          extended bygnu.javax.net.ssl.provider.DigestInputStream
All Implemented Interfaces:
java.io.Closeable

final class DigestInputStream
extends java.io.FilterInputStream


Field Summary
private  boolean digesting
           
private  gnu.java.security.hash.IMessageDigest md5
           
private  gnu.java.security.hash.IMessageDigest sha
           
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
(package private) DigestInputStream(java.io.InputStream in, gnu.java.security.hash.IMessageDigest md5, gnu.java.security.hash.IMessageDigest sha)
           
 
Method Summary
 int read()
          Calls the in.read() method
 int read(byte[] buf)
          Calls the read(byte[], int, int) overloaded method.
 int read(byte[] buf, int off, int len)
          Calls the in.read(byte[], int, int) method.
(package private)  void setDigesting(boolean digesting)
           
 
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
 

Field Detail

md5

private gnu.java.security.hash.IMessageDigest md5

sha

private gnu.java.security.hash.IMessageDigest sha

digesting

private boolean digesting
Constructor Detail

DigestInputStream

DigestInputStream(java.io.InputStream in,
                  gnu.java.security.hash.IMessageDigest md5,
                  gnu.java.security.hash.IMessageDigest sha)
Method Detail

setDigesting

void setDigesting(boolean digesting)

read

public int read()
         throws java.io.IOException
Description copied from class: java.io.FilterInputStream
Calls the in.read() method


read

public int read(byte[] buf)
         throws java.io.IOException
Description copied from class: java.io.FilterInputStream
Calls the read(byte[], int, int) overloaded method. Note that this method does not redirect its call directly to a corresponding method in in. This allows subclasses to override only the three argument version of read.


read

public int read(byte[] buf,
                int off,
                int len)
         throws java.io.IOException
Description copied from class: java.io.FilterInputStream
Calls the in.read(byte[], int, int) method.