Class ProtonBufferOutputStream

java.lang.Object
java.io.OutputStream
org.apache.qpid.protonj2.buffer.ProtonBufferOutputStream
All Implemented Interfaces:
Closeable, DataOutput, Flushable, AutoCloseable

public class ProtonBufferOutputStream extends OutputStream implements DataOutput
ProtonBuffer specialized OutputStream implementation which can be used to adapt the proton buffer types into code that uses the streams API. This stream wrapper does not take ownership of the provided buffer and will not close it upon a call to close()

This stream is not thread-safe and should not be used by more than one thread at the same time.