|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bankframe.ei.channel.codec.JOTPCodec
public class JOTPCodec
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 | |
---|---|
Vector |
decode(String hexString)
This method decodes an encoded string to a vector of DataPackets |
String |
encode(Vector ser)
This method encodes a Vector of DataPackets as a string. |
String |
getName()
Return the name of this codec. |
Serializable |
hexToSerializable(String hexString)
|
String |
serializableToHex(Serializable ser)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JOTPCodec()
Method Detail |
---|
public Vector decode(String hexString)
decode
in interface Codec
hexString
- the encoded string
public String encode(Vector ser)
Codec
encode
in interface Codec
ser
- Vector an encoded stringpublic String getName()
getName
in interface Codec
public Serializable hexToSerializable(String hexString) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public String serializableToHex(Serializable ser) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |