public class SnappyFramedEncoder extends ByteToByteEncoder
ByteBuf using the Snappy framing format.
See http://code.google.com/p/snappy/source/browse/trunk/framing_format.txt| Constructor and Description |
|---|
SnappyFramedEncoder() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
encode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in,
io.netty.buffer.ByteBuf out)
Encodes the from one
ByteBuf to an other. |
flushdiscardOutboundReadBytes, flush, freeOutboundBuffer, newOutboundBufferbind, close, connect, deregister, disconnect, read, sendFileafterAdd, afterRemove, beforeAdd, beforeRemove, exceptionCaught, userEventTriggeredclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected void encode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in,
io.netty.buffer.ByteBuf out)
throws Exception
ByteToByteEncoderByteBuf to an other. This method will be called till either the input
ByteBuf has nothing to read anymore or till nothing was read from the input ByteBuf.encode in class ByteToByteEncoderctx - the ChannelHandlerContext which this ByteToByteDecoder belongs toin - the ByteBuf from which to read dataout - the ByteBuf to which the decoded data will be writtenException - is thrown if an error accourCopyright © 2008-2013 The Netty Project. All Rights Reserved.