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 messages (typically IoBuffer
s)
into ProtocolEncoderOutput
by calling ProtocolEncoderOutput.write(Object)
.
Please refer to
TextLineEncoder
example.
ProtocolEncoderException
void encode(IoSession session, Object message, ProtocolEncoderOutput out) throws Exception
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
.Exception
- if the message violated protocol specificationCopyright © 2004–2014 Apache MINA Project. All rights reserved.