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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddrain(WritableByteChannel channel, ByteBuffer buffer) voidflush()voidwrite(int b) Methods inherited from class java.io.OutputStream
close, nullOutputStream, write, write
-
Constructor Details
-
ByteBufferOutputStream
-
-
Method Details
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
drain
- Throws:
IOException
-