|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mina.example.imagine.step1.codec.ImageCodecFactory
public class ImageCodecFactory
a ProtocolCodecFactory for the tutorial on how to write a protocol codec
| Constructor Summary | |
|---|---|
ImageCodecFactory(boolean client)
|
|
| Method Summary | |
|---|---|
ProtocolDecoder |
getDecoder(IoSession ioSession)
Returns a new (or reusable) instance of ProtocolDecoder which
decodes binary or protocol-specific data into message objects. |
ProtocolEncoder |
getEncoder(IoSession ioSession)
Returns a new (or reusable) instance of ProtocolEncoder which
encodes message objects into binary or protocol-specific data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageCodecFactory(boolean client)
| Method Detail |
|---|
public ProtocolEncoder getEncoder(IoSession ioSession)
throws java.lang.Exception
ProtocolCodecFactoryProtocolEncoder which
encodes message objects into binary or protocol-specific data.
getEncoder in interface ProtocolCodecFactoryjava.lang.Exception
public ProtocolDecoder getDecoder(IoSession ioSession)
throws java.lang.Exception
ProtocolCodecFactoryProtocolDecoder which
decodes binary or protocol-specific data into message objects.
getDecoder in interface ProtocolCodecFactoryjava.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||