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