ByteOutput implementation which writes the data to a ByteBuf
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements java. |
| public void | flush()
Implements java. |
| pack-priv ByteBuf | |
| public void | write(int
the byte to write b)Implements org. b.
|
| public void | write(byte[]
the byte array bytes)Implements org. |
| public void | write(byte[]
the byte array bytes, int the index to start writing from srcIndex, int the number of bytes to write length)Implements org. |
| buffer | back to summary |
|---|---|
| private final ByteBuf buffer | |
| ChannelBufferByteOutput | back to summary |
|---|---|
| pack-priv ChannelBufferByteOutput(ByteBuf buffer) Create a new instance which use the given | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Implements java. Doc from java. Flushes this stream by writing any buffered output to the underlying stream.
| |
| getBuffer | back to summary |
|---|---|
| pack-priv ByteBuf getBuffer() Return the | |
| write | back to summary |
|---|---|
| public void write(int b) throws IOException Implements org. Doc from org. Writes to the output stream the eight low-order bits of the argument
| |
| write | back to summary |
|---|---|
| public void write(byte[] bytes) throws IOException Implements org. Doc from org. Write all the bytes from the given array to the stream.
| |
| write | back to summary |
|---|---|
| public void write(byte[] bytes, int srcIndex, int length) throws IOException Implements org. Doc from org. Write some of the bytes from the given array to the stream.
| |