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: 332218 $, $Date: 2005-11-10 12:52:42 +0900 $
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

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


newDecoder

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



Copyright © 2004-2005 . All Rights Reserved.