CheckedOutputStream

An output stream that also maintains a checksum of the data being written. The checksum can then be used to verify the integrity of the output data.

Author

David Connelly

Since

1.1

See also

Constructors

Link copied to clipboard
constructor(out: OutputStream, cksum: Checksum)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun close()

Closes this output stream and releases any system resources associated with the stream.

Link copied to clipboard
open override fun flush()

Flushes this output stream and forces any buffered output bytes to be written out to the stream.

Link copied to clipboard

Returns true if the stream is closed. This method is added to allow subclasses to check the closed state.

Link copied to clipboard
open override fun write(b: Int)

Writes a byte. Will block until the byte is actually written.

open override fun write(b: ByteArray, off: Int, len: Int)

Writes an array of bytes. Will block until the bytes are actually written.

open override fun write(b: ByteArray)

Writes b.length bytes to this output stream.