Java java.security DigestOutputStream fields, constructors, methods, implement or subclass

Example usage for Java java.security DigestOutputStream fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.security DigestOutputStream.

The text is from its open source code.

Constructor

DigestOutputStream(OutputStream stream, MessageDigest digest)
Creates a digest output stream, using the specified output stream and message digest.

Method

voidclose()
Closes this output stream and releases any system resources associated with the stream.
voidflush()
Flushes this output stream and forces any buffered output bytes to be written out to the stream.
MessageDigestgetMessageDigest()
Returns the message digest associated with this stream.
voidwrite(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.
voidwrite(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.