public abstract class MessageToByteEncoder<I>
extends io.netty.channel.ChannelOutboundMessageHandlerAdapter<I>
Constructor and Description |
---|
MessageToByteEncoder() |
Modifier and Type | Method and Description |
---|---|
abstract void |
encode(io.netty.channel.ChannelHandlerContext ctx,
I msg,
io.netty.buffer.ByteBuf out) |
void |
flush(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.ChannelFuture future) |
boolean |
isEncodable(Object msg)
Returns
true if and only if the specified message can be encoded by this encoder. |
newOutboundBuffer
afterAdd, afterRemove, beforeAdd, beforeRemove, bind, close, connect, deregister, disconnect, exceptionCaught, userEventTriggered
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void flush(io.netty.channel.ChannelHandlerContext ctx, io.netty.channel.ChannelFuture future) throws Exception
flush
in interface io.netty.channel.ChannelOperationHandler
flush
in class io.netty.channel.ChannelOutboundHandlerAdapter
Exception
public boolean isEncodable(Object msg) throws Exception
true
if and only if the specified message can be encoded by this encoder.msg
- the messageException
Copyright © 2008-2012 The Netty Project. All Rights Reserved.