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

java.lang.Object
  extended by org.apache.mina.example.imagine.step1.codec.ImageCodecFactory
All Implemented Interfaces:
ProtocolCodecFactory

public class ImageCodecFactory
extends java.lang.Object
implements ProtocolCodecFactory

a ProtocolCodecFactory for the tutorial on how to write a protocol codec

Author:
Apache MINA Project

Constructor Summary
ImageCodecFactory(boolean client)
           
 
Method Summary
 ProtocolDecoder getDecoder(IoSession ioSession)
           
 ProtocolEncoder getEncoder(IoSession ioSession)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageCodecFactory

public ImageCodecFactory(boolean client)
Method Detail

getEncoder

public ProtocolEncoder getEncoder(IoSession ioSession)
                           throws java.lang.Exception
Specified by:
getEncoder in interface ProtocolCodecFactory
Throws:
java.lang.Exception

getDecoder

public ProtocolDecoder getDecoder(IoSession ioSession)
                           throws java.lang.Exception
Specified by:
getDecoder in interface ProtocolCodecFactory
Throws:
java.lang.Exception


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