Package org.apache.mina.filter.codec
Interface ProtocolCodecFactory
-
- All Known Implementing Classes:
DemuxingProtocolCodecFactory
,ObjectSerializationCodecFactory
,TextLineCodecFactory
public interface ProtocolCodecFactory
ProvidesProtocolEncoder
andProtocolDecoder
which translates binary or protocol specific data into message object and vice versa.Please refer to
ReverserProtocolProvider
example.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProtocolDecoder
getDecoder()
Returns a new (or reusable) instance ofProtocolDecoder
which decodes binary or protocol-specific data into message objects.ProtocolEncoder
getEncoder()
Returns a new (or reusable) instance ofProtocolEncoder
which encodes message objects into binary or protocol-specific data.
-
-
-
Method Detail
-
getEncoder
ProtocolEncoder getEncoder() throws java.lang.Exception
Returns a new (or reusable) instance ofProtocolEncoder
which encodes message objects into binary or protocol-specific data.- Throws:
java.lang.Exception
-
getDecoder
ProtocolDecoder getDecoder() throws java.lang.Exception
Returns a new (or reusable) instance ofProtocolDecoder
which decodes binary or protocol-specific data into message objects.- Throws:
java.lang.Exception
-
-