CountingOutputStream

An OutputStream that counts the amount of bytes written to it

Since

0.1.0

Parameters

out

The OutputStream to write to

Constructors

Link copied to clipboard
constructor(out: OutputStream)

Properties

Link copied to clipboard

The count of written bytes to the output stream

Link copied to clipboard
val count: Long

The amount of bytes written to the OutputStream

Link copied to clipboard

The count of write operations to the output stream

Link copied to clipboard

The OutputStream to write to

Functions

Link copied to clipboard
open override fun close()

Closes the OutputStream

Link copied to clipboard
open override fun flush()

Flushes the OutputStream

Link copied to clipboard
open override fun write(b: ByteArray)
open override fun write(b: ByteArray, off: Int, len: Int)

Writes a byte array to the OutputStream

open override fun write(b: Int)

Writes a single byte to the OutputStream