Fields
| Name | Description |
|---|---|
| digest | The message digest associated with this stream. |
Constructors
| Name | Description |
|---|---|
| DigestOutputStream(OutputStream, MessageDigest) | Creates a digest output stream, using the specified output 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. |
| setMessageDigest(MessageDigest) | Associates the specified message digest with this stream. |
| toString() | Prints a string representation of this digest output stream and its associated message digest object. |
| write(byte[], int, int) | Updates the message digest (if the digest function is on) using the specified subarray, and in any case writes the subarray to the output stream. |
| write(int) | Updates the message digest (if the digest function is on) using the specified byte, and in any case writes the byte to the output stream. |