com.bankframe.ei.channel.codec
Interface Codec

All Known Implementing Classes:
B2BXMLCodec, DPTPCodec, DPTPDOMCodec, DPTPPaddingCodec, FooXmlXslCodec, JOTPCodec, XMLDOMCodec, XMLXSLCodec

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.


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

Method Detail

decode

Vector decode(String encoded)
This method decodes an encoded String to a Vector of DataPackets.

Parameters:
encoded - an encoded string

encode

String encode(Vector data)
This method encodes a Vector of DataPackets as a string.

Parameters:
data - Vector an encoded string

getName

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

Returns:
the codec name


Copyright © 2005, 2007, Oracle. All rights reserved.