com.bankframe.ei.channel.codec
Interface Codec

All Known Implementing Classes:
DPTPCodec, JOTPCodec, XMLDOMCodec

public interface Codec

A standard interface that all codecs must implement. A codec is an object that converts Vectors of DataPacekts to a string The content of the String will depend on the codec used. This string representation can then be send over a HTTP connection.

Author:
ETU

Method Summary
 java.util.Vector decode(java.lang.String encoded)
          This method decodes an encoded String to a Vector of DataPackets.
 java.lang.String encode(java.util.Vector data)
          This method encodes a Vector of DataPackets as a string.
 java.lang.String getName()
          This method gets the name of the codec.
 

Method Detail

decode

public java.util.Vector decode(java.lang.String encoded)
This method decodes an encoded String to a Vector of DataPackets.

Parameters:
encoded - an encoded string

encode

public java.lang.String encode(java.util.Vector data)
This method encodes a Vector of DataPackets as a string.


getName

public java.lang.String getName()
This method gets the name of the codec.

Returns:
the codec name


Copyright © 2004 Siebel Systems, Inc. All rights reserved.