Construct a Buffer upon the provided input stream.
Construct a Buffer upon the provided input stream.
access the sink
Append content.
Append content.
Access buffer capacity.
Clear buffer content.
Flushes the buffer and closes the stream.
Copy content via this buffer from the provided src conduit.
Drain buffer content to the specific conduit.
Flush all buffer content to the specific conduit.
Access buffer limit.
Set the output stream.
Seek within this stream
Retrieve the valid content.
Truncate the buffer within its extent.
Available space.
Emulate OutputStream.write().
Write into this buffer.
Cast to a target type without invoking the wrath of the runtime checks for misalignment. Instead, we truncate the array length.
Attempts to share an upstream BufferedOutput, and creates a new instance where there's not a shared one available.
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.
Buffers the flow of data from a upstream output.
A downstream neighbour can locate and use this buffer instead of creating another instance of their own.
Don't forget to flush() buffered content before closing.
Note: upstream is closer to the source, and downstream is further away