Example usage for Java java.security DigestOutputStream fields, constructors, methods, implement or subclass
The text is from its open source code.
DigestOutputStream(OutputStream stream, MessageDigest digest) Creates a digest output stream, using the specified output stream and message digest. |
void | close() Closes this output stream and releases any system resources associated with the stream. |
void | flush() Flushes this output stream and forces any buffered output bytes to be written out to the stream. |
MessageDigest | getMessageDigest() Returns the message digest associated with this stream. |
void | write(int b) 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. |
void | write(byte[] b, int off, int len) 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. |