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: 123500 $, $Date: 2004-12-28 22:11:05 +0900 (?, 28 12? 2004) $
Author:
Trustin Lee (trustin@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.