public class ImageResponseEncoder extends ProtocolEncoderAdapter
ImageResponse objects| 构造器和说明 |
|---|
ImageResponseEncoder() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
encode(IoSession session,
java.lang.Object message,
ProtocolEncoderOutput out)
Encodes higher-level message objects into binary or protocol-specific data.
|
disposepublic void encode(IoSession session, java.lang.Object message, ProtocolEncoderOutput out) throws java.lang.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.session - The current Sessionmessage - the message to encodeout - The ProtocolEncoderOutput that will receive the encoded messagejava.lang.Exception - if the message violated protocol specification