| java.lang.Object java.io.InputStream java.io.FilterInputStream java.security.DigestInputStream
Method Summary | |
public MessageDigest | getMessageDigest() Answers the MessageDigest which the receiver uses when computing the
hash. | public void | on(boolean on) Enables or disables the digest function (default is on). | public int | read() Reads the next byte and answers it as an int. | public int | read(byte[] b, int off, int len) | public void | setMessageDigest(MessageDigest digest) Sets the MessageDigest which the receiver will use when computing the
hash. | public String | toString() Answers a string containing a concise, human-readable description of the
receiver. |
getMessageDigest | public MessageDigest getMessageDigest()(Code) | | Answers the MessageDigest which the receiver uses when computing the
hash.
MessageDigest the digest the receiver uses when computing thehash. |
on | public void on(boolean on)(Code) | | Enables or disables the digest function (default is on).
Parameters: on - boolean true if the digest should be computed, and falseotherwise. See Also: MessageDigest |
read | public int read() throws IOException(Code) | | Reads the next byte and answers it as an int. Updates the digest for the
byte if this function is enabled.
int the byte which was read or -1 at end of stream. exception: java.io.IOException - If reading the source stream causes an IOException. |
setMessageDigest | public void setMessageDigest(MessageDigest digest)(Code) | | Sets the MessageDigest which the receiver will use when computing the
hash.
Parameters: digest - MessageDigest the digest to use when computing the hash. See Also: MessageDigest See Also: DigestInputStream.on |
toString | public String toString()(Code) | | Answers a string containing a concise, human-readable description of the
receiver.
String a printable representation for the receiver. |
|
|