Accepts any output stream, and any digest derivation.
Return the Digest instance we were created with. Use this to access the resultant binary or hex digest value.
Write to conduit from a source array. The provided src content will be written to the conduit.
Return the hosting conduit.
Write to conduit from a source array. The provided src content will be written to the conduit.
Transfer the content of another conduit to this one. Returns a reference to this class, or throws IOException on failure.
Emit/purge buffered content.
Seek on this stream. Target conduits that don't support seeking will throw an IOException.
Return the upstream host of this filter.
Close the output.
Inject a digest filter into an output stream, updating the digest as information flows through it. Here's an example where we calculate an MD5 digest as a side-effect of copying a file: