class ChannelBufferByteOutput
extends java.lang.Object
implements org.jboss.marshalling.ByteOutput
ByteOutput implementation which writes the data to a ByteBuf| Constructor and Description |
|---|
ChannelBufferByteOutput(ByteBuf buffer)
Create a new instance which use the given
ByteBuf |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
(package private) ByteBuf |
getBuffer()
Return the
ByteBuf which contains the written content |
void |
write(byte[] bytes) |
void |
write(byte[] bytes,
int srcIndex,
int length) |
void |
write(int b) |
private final ByteBuf buffer
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushablejava.io.IOExceptionpublic void write(int b)
throws java.io.IOException
write in interface org.jboss.marshalling.ByteOutputjava.io.IOExceptionpublic void write(byte[] bytes)
throws java.io.IOException
write in interface org.jboss.marshalling.ByteOutputjava.io.IOExceptionpublic void write(byte[] bytes,
int srcIndex,
int length)
throws java.io.IOException
write in interface org.jboss.marshalling.ByteOutputjava.io.IOException