Package org.apache.mina.filter.codec
Filter implementations that helps you to implement complex protocols via 'codec' concept.
- Author:
- Apache MINA Project
-
Interface Summary Interface Description ProtocolCodecFactory ProvidesProtocolEncoderandProtocolDecoderwhich translates binary or protocol specific data into message object and vice versa.ProtocolDecoder Decodes binary or protocol-specific data into higher-level message objects.ProtocolDecoderOutput Callback forProtocolDecoderto generate decoded messages.ProtocolEncoder Encodes higher-level message objects into binary or protocol-specific data.ProtocolEncoderOutput Callback forProtocolEncoderto generate encoded messages such asIoBuffers. -
Class Summary Class Description AbstractProtocolDecoderOutput AProtocolDecoderOutputbased on queue.AbstractProtocolEncoderOutput AProtocolEncoderOutputbased on queue.CumulativeProtocolDecoder AProtocolDecoderthat cumulates the content of received buffers to a cumulative buffer to help users implement decoders.ProtocolCodecFilter AnIoFilterwhich translates binary or protocol specific data into message objects and vice versa usingProtocolCodecFactory,ProtocolEncoder, orProtocolDecoder.ProtocolCodecSession ProtocolDecoderAdapter An abstractProtocolDecoderimplementation for those who don't needProtocolDecoder.finishDecode(IoSession, ProtocolDecoderOutput)norProtocolDecoder.dispose(IoSession)method.ProtocolEncoderAdapter An abstractProtocolEncoderimplementation for those who don't have any resources to dispose.SynchronizedProtocolDecoder AProtocolDecoderimplementation which decorates an existing decoder to be thread-safe.SynchronizedProtocolEncoder AProtocolEncoderimplementation which decorates an existing encoder to be thread-safe. -
Exception Summary Exception Description ProtocolCodecException An exception that is thrown whenProtocolEncoderorProtocolDecodercannot understand or failed to validate data to process.ProtocolDecoderException An exception that is thrown whenProtocolDecodercannot understand or failed to validate the specifiedIoBuffercontent.ProtocolEncoderException An exception that is thrown whenProtocolEncodercannot understand or failed to validate the specified message object.RecoverableProtocolDecoderException A special exception that tells theProtocolDecodercan keep decoding even after this exception is thrown.