class ChannelBufferByteOutput
extends java.lang.Object
implements org.jboss.marshalling.ByteOutput
ByteOutput implementation which writes the data to a ChannelBuffer| Modifier and Type | Field and Description |
|---|---|
private ChannelBuffer |
buffer |
| Constructor and Description |
|---|
ChannelBufferByteOutput(ChannelBuffer buffer)
Create a new instance which use the given
ChannelBuffer |
ChannelBufferByteOutput(ChannelBufferFactory factory,
int estimatedLength)
Calls
ChannelBufferByteOutput(ChannelBuffer) with a dynamic ChannelBuffer |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
ChannelBuffer |
getBuffer()
Return the
ChannelBuffer which contains the written content |
void |
write(byte[] bytes) |
void |
write(byte[] bytes,
int srcIndex,
int length) |
void |
write(int b) |
private final ChannelBuffer buffer
public ChannelBufferByteOutput(ChannelBuffer buffer)
ChannelBufferpublic ChannelBufferByteOutput(ChannelBufferFactory factory, int estimatedLength)
ChannelBufferByteOutput(ChannelBuffer) with a dynamic ChannelBufferpublic 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.IOExceptionpublic ChannelBuffer getBuffer()
ChannelBuffer which contains the written content