Creates a sink which digests incoming bytes using Java's MessageDigest class, returning the digest value.
Uses the provided File to create a ZSink that consumes byte chunks
and writes them to the File.
Uses the provided File to create a ZSink that consumes byte chunks
and writes them to the File. The sink will yield count of bytes written.
Uses the provided Path represented as a string to create a ZSink that
consumes byte chunks and writes them to the File.
Uses the provided Path represented as a string to create a ZSink that
consumes byte chunks and writes them to the File. The sink will yield
count of bytes written.
Uses the provided URI to create a ZSink that consumes byte chunks and
writes them to the File.
Uses the provided URI to create a ZSink that consumes byte chunks and
writes them to the File. The sink will yield count of bytes written.
Uses the provided OutputStream to create a ZSink that consumes byte
chunks and writes them to the OutputStream.
Uses the provided OutputStream to create a ZSink that consumes byte
chunks and writes them to the OutputStream. The sink will yield the count
of bytes written.
The caller of this function is responsible for closing the OutputStream.
Uses the provided OutputStream resource to create a ZSink that
consumes byte chunks and writes them to the OutputStream.
Uses the provided OutputStream resource to create a ZSink that
consumes byte chunks and writes them to the OutputStream. The sink will
yield the count of bytes written.
The OutputStream will be automatically closed after the stream is
finished or an error occurred.
Uses the provided Path to create a ZSink that consumes byte chunks
and writes them to the File.
Uses the provided Path to create a ZSink that consumes byte chunks
and writes them to the File. The sink will yield count of bytes written.