com.bankframe.ei.txnhandler.hostcache
Class Util

java.lang.Object
  extended bycom.bankframe.ei.txnhandler.hostcache.Util

Deprecated. Use the com.bankframe.serives.cache package instead

public class Util
extends java.lang.Object

This class provides common hex manipulation methods.


Constructor Summary
Util()
          Deprecated.  
 
Method Summary
static byte[] toBytes(java.lang.String hexString)
          Deprecated. This method converts a hexidecimal string into a byte array.
static java.lang.String toHexString(java.io.InputStream in)
          Deprecated. This method takes a binary input stream and converts it to a hexidecimal string.
static java.io.Serializable toSerializableFromHex(java.lang.String hexString)
          Deprecated. This method converts a hexidecimal string into a Serializable object, if possible.
static java.io.InputStream toSerializedInputStream(java.io.Serializable ser)
          Deprecated. This method transforms the argument into a serialized InputStream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Deprecated. 
Method Detail

toBytes

public static byte[] toBytes(java.lang.String hexString)
Deprecated. 
This method converts a hexidecimal string into a byte array.

Parameters:
hexString - The string to convert.
Returns:
An array of bytes

toHexString

public static java.lang.String toHexString(java.io.InputStream in)
                                    throws java.io.IOException
Deprecated. 
This method takes a binary input stream and converts it to a hexidecimal string.

Parameters:
in - The input stream to convert.
Returns:
The input stream as a hex string.
Throws:
java.io.IOException - If there was an IO Exception.

toSerializableFromHex

public static java.io.Serializable toSerializableFromHex(java.lang.String hexString)
                                                  throws java.io.IOException,
                                                         java.lang.ClassNotFoundException
Deprecated. 
This method converts a hexidecimal string into a Serializable object, if possible.

Parameters:
hexString - The string to convert.
Returns:
An instance of the serialized object.
Throws:
java.io.IOException - If there was an IO exception in converting the string.
java.lang.ClassNotFoundException - If the class represented by the string could not be found by the current JVM's class loader.

toSerializedInputStream

public static java.io.InputStream toSerializedInputStream(java.io.Serializable ser)
                                                   throws java.io.IOException
Deprecated. 
This method transforms the argument into a serialized InputStream.

Parameters:
ser - The object to be serialized.
Returns:
The serialized InputStream.
Throws:
java.io.IOException - If an IOException occurred during serialization.


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