java.lang.Object
java.io.InputStream
java.io.FilterInputStream
gnu.javax.net.ssl.provider.DigestInputStream
- All Implemented Interfaces:
- java.io.Closeable
- final class DigestInputStream
- extends java.io.FilterInputStream
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.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
md5
private gnu.java.security.hash.IMessageDigest md5
sha
private gnu.java.security.hash.IMessageDigest sha
digesting
private boolean digesting
DigestInputStream
DigestInputStream(java.io.InputStream in,
gnu.java.security.hash.IMessageDigest md5,
gnu.java.security.hash.IMessageDigest sha)
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.