public class FrameEncoder extends Object implements ProtocolEncoder
Constructor and Description |
---|
FrameEncoder() |
public void dispose(IoSession session) throws Exception
ProtocolEncoder
dispose
in interface ProtocolEncoder
Exception
- if failed to dispose all resourcespublic void encode(IoSession session, Object message, ProtocolEncoderOutput output) throws Exception
ProtocolEncoder
ProtocolEncoder.encode(IoSession, Object, ProtocolEncoderOutput)
method with message which is popped from the session write queue, and then
the encoder implementation puts encoded messages (typically IoBuffer
s)
into ProtocolEncoderOutput
.encode
in interface ProtocolEncoder
Exception
- if the message violated protocol specification