com.bankframe.ei.channel.codec
Class JOTPCodec

java.lang.Object
  extended bycom.bankframe.ei.channel.codec.JOTPCodec
All Implemented Interfaces:
Codec

public class JOTPCodec
extends java.lang.Object
implements Codec

This class converts Vectors of DataPackets to a hexadecimal string representation. This is string representaion can be used to transport the DataPacket over a typical HTTP connection.


Constructor Summary
JOTPCodec()
          Default Constructor
 
Method Summary
 java.util.Vector decode(java.lang.String hexString)
          This method decodes an encoded string to a vector of DataPackets
 java.lang.String encode(java.util.Vector ser)
          This method encodes a Vector of DataPackets as a string.
 java.lang.String getName()
          Return the name of this codec.
 java.io.Serializable hexToSerializable(java.lang.String hexString)
           
 java.lang.String serializableToHex(java.io.Serializable ser)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JOTPCodec

public JOTPCodec()
Default Constructor

Method Detail

decode

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

Specified by:
decode in interface Codec
Parameters:
hexString - the encoded string
Returns:
a vector of DataPackets

encode

public java.lang.String encode(java.util.Vector ser)
Description copied from interface: Codec
This method encodes a Vector of DataPackets as a string.

Specified by:
encode in interface Codec

getName

public java.lang.String getName()
Return the name of this codec.

Specified by:
getName in interface Codec
Returns:
java.lang.String

hexToSerializable

public java.io.Serializable hexToSerializable(java.lang.String hexString)
                                       throws java.io.IOException,
                                              java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

serializableToHex

public java.lang.String serializableToHex(java.io.Serializable ser)
                                   throws java.io.IOException
Throws:
java.io.IOException


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