org.apache.mina.protocol
Interface ProtocolCodecFactory

All Known Implementing Classes:
DemuxingProtocolCodecFactory

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.

Version:
$Rev: 326586 $, $Date: 2005-10-19 17:50:29 +0200 (Wed, 19 Oct 2005) $
Author:
The Apache Directory Project (dev@directory.apache.org)

Method Summary
 ProtocolDecoder newDecoder()
          Creates a new instance of ProtocolDecoder which decodes binary or protocol-specific data into message objects.
 ProtocolEncoder newEncoder()
          Creates a new instance of ProtocolEncoder which encodes message objects into binary or protocol-specific data.
 

Method Detail

newEncoder

public ProtocolEncoder newEncoder()
Creates a new instance of ProtocolEncoder which encodes message objects into binary or protocol-specific data.


newDecoder

public ProtocolDecoder newDecoder()
Creates a new instance of ProtocolDecoder which decodes binary or protocol-specific data into message objects.