|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - The type that the created encoders are designed to encode.public interface DemuxableProtocolCodecFactory<T>
ProtocolCodecFactory for protocols that can be demultiplexed.
| Method Summary | |
|---|---|
boolean |
canDecode(org.littleshoot.mina.common.ByteBuffer in)
Determines whether or not this codec factory is capable of decoding the specified data. |
boolean |
enoughData(org.littleshoot.mina.common.ByteBuffer in)
Returns whether or not the specified buffer has enough data to determine whether or not this decoder can handle it. |
Class<T> |
getClassToEncode()
Gets the class this factory is designed to encode. |
DemuxableProtocolDecoder |
newDecoder()
Returns a new (or reusable) instance of ProtocolDecoder which
decodes binary or protocol-specific data into message objects. |
org.littleshoot.mina.filter.codec.ProtocolEncoder |
newEncoder()
Creates a new encoder. |
| Method Detail |
|---|
org.littleshoot.mina.filter.codec.ProtocolEncoder newEncoder()
ProtocolEncoder.DemuxableProtocolDecoder newDecoder()
ProtocolDecoder which
decodes binary or protocol-specific data into message objects.
DemuxableProtocolDecoder for decoding a particular
protocol.Class<T> getClassToEncode()
Class this factory is designed to encode.boolean canDecode(org.littleshoot.mina.common.ByteBuffer in)
in - The data to decode.
true if this decoder can decode the data,
otherwise false.boolean enoughData(org.littleshoot.mina.common.ByteBuffer in)
in - The incoming buffer of data.
true if there's enough data available to determine
whether or not this decoder can understand the data.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||