java.io.Closeable
, java.lang.AutoCloseable
public class DigestInputStream
extends java.io.FilterInputStream
Constructor | Description |
---|---|
DigestInputStream(java.io.InputStream stream,
Digest digest) |
Modifier and Type | Method | Description |
---|---|---|
Digest |
getDigest() |
|
int |
read() |
|
int |
read(byte[] b,
int off,
int len) |
protected Digest digest
public DigestInputStream(java.io.InputStream stream, Digest digest)
public int read() throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public Digest getDigest()