| java.lang.Object | ||||
| java.io.InputStream | Closeable | |||
| java.io.FilterInputStream | ||||
| java.security.DigestInputStream | ||||
| protected | MessageDigest | digest |
Fields inherited
from class
java.io.FilterInputStream
| DigestInputStream(InputStream stream, MessageDigest digest) |
| MessageDigest | getMessageDigest() | ||||
| Answers the MessageDigest which the receiver uses when computing the hash. | |||||
| void | on(boolean on) | ||||
| Enables or disables the digest function (default is on). | |||||
| int | read(byte[] b, int off, int len) | ||||
Reads at most count bytes from this FilterInputStream and
stores them in byte array buffer starting at
offset. |
|||||
| int | read() | ||||
| Reads the next byte and answers it as an int. | |||||
| void | setMessageDigest(MessageDigest digest) | ||||
| Sets the MessageDigest which the receiver will use when computing the hash. | |||||
| String | toString() | ||||
| Answers a string containing a concise, human-readable description of the receiver. | |||||
Methods inherited
from class
java.io.FilterInputStream
Methods inherited
from class
java.io.InputStream
Methods inherited
from class
java.lang.Object
Methods inherited
from interface
java.io.Closeable
| on | boolean true if the digest should be computed, and false otherwise. |
|---|
count bytes from this FilterInputStream and
stores them in byte array buffer starting at
offset. Answer the number of bytes actually read or -1 if
no bytes were read and end of stream was encountered. This implementation
reads bytes from the target stream.
| b | the byte array in which to store the read bytes. |
|---|---|
| off | the offset in buffer to store the read bytes. |
| len | the maximum number of bytes to store in buffer. |
| IOException |
|---|
| IOException | If reading the source stream causes an IOException. |
|---|
| digest | MessageDigest the digest to use when computing the hash. |
|---|