org.apache.mina.example.imagine.step1.codec
Class ImageResponseEncoder

java.lang.Object
  extended by org.apache.mina.filter.codec.ProtocolEncoderAdapter
      extended by 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

Constructor Summary
ImageResponseEncoder()
           
 
Method Summary
 void encode(IoSession session, java.lang.Object message, ProtocolEncoderOutput out)
          Encodes higher-level message objects into binary or protocol-specific data.
 
Methods inherited from class org.apache.mina.filter.codec.ProtocolEncoderAdapter
dispose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageResponseEncoder

public ImageResponseEncoder()
Method Detail

encode

public void encode(IoSession session,
                   java.lang.Object message,
                   ProtocolEncoderOutput out)
            throws java.lang.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:
java.lang.Exception - if the message violated protocol specification


Copyright © 2004-2011 Apache MINA Project. All Rights Reserved.