BufferedOutputStream

A buffered wrapper around another output stream, that buffers writes up to BufferSize elements before flushing the buffer to the underlying stream.

Constructors

this
this(S stream)

Constructs a buffered output stream to buffer writes to the given stream.

Members

Functions

closeStream
OptionalStreamError closeStream()
Undocumented in source. Be warned that the author may not have intended to support it.
flushStream
OptionalStreamError flushStream()

Manually invokes a flush to the underlying stream.

writeToStream
StreamResult writeToStream(E[] buffer)

Writes the given items this stream's internal buffer, and flushes if we reach the buffer's capacity.

Meta