Class ByteBufferOutputStream

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

public class ByteBufferOutputStream extends OutputStream
Simple wrapper of a ByteBuffer as an OutputStream. The buffer does not grow and this class will throw an BufferOverflowException if the buffer capacity is exceeded.