public interface ProtocolCodecFactory
ProtocolEncoder
and ProtocolDecoder
which translates
binary or protocol specific data into message object and vice versa.
Please refer to
ReverserProtocolProvider
example.
限定符和类型 | 方法和说明 |
---|---|
ProtocolDecoder |
getDecoder()
Returns a new (or reusable) instance of
ProtocolDecoder which
decodes binary or protocol-specific data into message objects. |
ProtocolEncoder |
getEncoder()
Returns a new (or reusable) instance of
ProtocolEncoder which
encodes message objects into binary or protocol-specific data. |
ProtocolEncoder getEncoder() throws java.lang.Exception
ProtocolEncoder
which
encodes message objects into binary or protocol-specific data.java.lang.Exception
ProtocolDecoder getDecoder() throws java.lang.Exception
ProtocolDecoder
which
decodes binary or protocol-specific data into message objects.java.lang.Exception