org.apache.mina.example.imagine.step1.codec
Class ImageResponseEncoder
java.lang.Object
org.apache.mina.filter.codec.ProtocolEncoderAdapter
org.apache.mina.example.imagine.step1.codec.ImageResponseEncoder
- All Implemented Interfaces:
- ProtocolEncoder
public class ImageResponseEncoder
- extends ProtocolEncoderAdapter
an encoder for ImageResponse objects
- Author:
- Apache MINA Project
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageResponseEncoder
public ImageResponseEncoder()
encode
public void encode(IoSession session,
Object message,
ProtocolEncoderOutput out)
throws Exception
- Description copied from interface:
ProtocolEncoder
- Encodes higher-level message objects into binary or protocol-specific data.
MINA invokes
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 IoBuffers)
into ProtocolEncoderOutput.
- Throws:
Exception - if the message violated protocol specification
Copyright © 2004-2011 Apache MINA Project. All Rights Reserved.