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