com.bankframe.ei.txnhandler.hostcache
Class Util

java.lang.Object
  extended by com.bankframe.ei.txnhandler.hostcache.Util

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

public class Util
extends Object

This class provides common hex manipulation methods.


Constructor Summary
Util()
          Deprecated.  
 
Method Summary
static byte[] toBytes(String hexString)
          Deprecated. This method converts a hexidecimal string into a byte array.
static String toHexString(InputStream in)
          Deprecated. This method takes a binary input stream and converts it to a hexidecimal string.
static Serializable toSerializableFromHex(String hexString)
          Deprecated. This method converts a hexidecimal string into a Serializable object, if possible.
static InputStream toSerializedInputStream(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(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 String toHexString(InputStream in)
                          throws 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:
IOException - If there was an IO Exception.

toSerializableFromHex

public static Serializable toSerializableFromHex(String hexString)
                                          throws IOException,
                                                 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:
IOException - If there was an IO exception in converting the string.
ClassNotFoundException - If the class represented by the string could not be found by the current JVM's class loader.

toSerializedInputStream

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

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


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