Class ChannelBufferByteOutput
java.lang.Object
org.jboss.netty.handler.codec.marshalling.ChannelBufferByteOutput
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
,org.jboss.marshalling.ByteOutput
ByteOutput
implementation which writes the data to a ChannelBuffer
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionChannelBufferByteOutput
(ChannelBuffer buffer) Create a new instance which use the givenChannelBuffer
ChannelBufferByteOutput
(ChannelBufferFactory factory, int estimatedLength) CallsChannelBufferByteOutput(ChannelBuffer)
with a dynamicChannelBuffer
-
Method Summary
-
Field Details
-
buffer
-
-
Constructor Details
-
ChannelBufferByteOutput
Create a new instance which use the givenChannelBuffer
-
ChannelBufferByteOutput
CallsChannelBufferByteOutput(ChannelBuffer)
with a dynamicChannelBuffer
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Throws:
IOException
-
write
- Specified by:
write
in interfaceorg.jboss.marshalling.ByteOutput
- Throws:
IOException
-
write
- Specified by:
write
in interfaceorg.jboss.marshalling.ByteOutput
- Throws:
IOException
-
write
- Specified by:
write
in interfaceorg.jboss.marshalling.ByteOutput
- Throws:
IOException
-
getBuffer
Return theChannelBuffer
which contains the written content
-