Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
public interface ProtocolEncoder
encode(IoSession,Object,ProtocolEncoderOutput)
method with message which is popped from the session write queue, and then
the encoder implementation puts encoded ByteBuffer
s into
ProtocolEncoderOutput
by calling
ProtocolEncoderOutput.write(ByteBuffer)
.
Please refer to
TextLineEncoder
example.
Method Summary | |
void | |
void |
|
public void dispose(IoSession session) throws Exception
Releases all resources related with this encoder.
public void encode(IoSession session, Object message, ProtocolEncoderOutput out) throws Exception
Encodes higher-level message objects into binary or protocol-specific data. MINA invokesencode(IoSession,Object,ProtocolEncoderOutput)
method with message which is popped from the session write queue, and then the encoder implementation puts encodedByteBuffer
s intoProtocolEncoderOutput
.