DigestInputStream Members

DigestInputStream Members

Class Overview | This Package | All Packages

Fields
Name Description
digest The message digest associated with this stream.

Constructors
Name Description
DigestInputStream(InputStream, MessageDigest) Creates a digest input stream, using the specified input stream and message digest.

Methods
Name Description
getMessageDigest() Returns the message digest associated with this stream.
on(boolean) Turns the digest function on or off.
read() Reads a byte, and updates the message digest (if the digest function is on).
read(byte[], int, int) Reads into a byte array, and updates the message digest (if the digest function is on).
setMessageDigest(MessageDigest) Associates the specified message digest with this stream.
toString() Prints a string representation of this digest input stream and its associated message digest object.