Package com.rabbitmq.client.impl.nio
Class ByteBufferOutputStream
java.lang.Object
java.io.OutputStream
com.rabbitmq.client.impl.nio.ByteBufferOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
Bridge between the byte buffer and stream worlds.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
drain
(WritableByteChannel channel, ByteBuffer buffer) void
flush()
void
write
(int b) Methods inherited from class java.io.OutputStream
close, nullOutputStream, write, write
-
Constructor Details
-
ByteBufferOutputStream
-
-
Method Details
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
drain
- Throws:
IOException
-