Class ByteBufferOutputStream

java.lang.Object
java.io.OutputStream
org.dellroad.stuff.io.ByteBufferOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class ByteBufferOutputStream extends OutputStream
Provides an OutputStream view of a ByteBuffer.

Any ReadOnlyBufferExceptions or BufferOverflowExceptions thrown by the underlying ByteBuffer will be wrapped in an IOException and rethrown.

Instances are thread safe.