org.fosstrak.ale.util
Class HexUtil

java.lang.Object
  extended by org.fosstrak.ale.util.HexUtil

public class HexUtil
extends java.lang.Object

This method provides some methods to convert byte arrays into hexadecimal strings and vice versa.

Author:
regli

Constructor Summary
HexUtil()
           
 
Method Summary
static java.lang.String byteArrayToHexString(byte[] byteArray)
          This method converts a byte array into a hexadecimal string.
static byte[] hexStringToByteArray(java.lang.String hexString)
          This method converts a hexadecimal string into a byte array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HexUtil

public HexUtil()
Method Detail

byteArrayToHexString

public static java.lang.String byteArrayToHexString(byte[] byteArray)
This method converts a byte array into a hexadecimal string.

Parameters:
byteArray - to convert
Returns:
hexadecimal string

hexStringToByteArray

public static byte[] hexStringToByteArray(java.lang.String hexString)
This method converts a hexadecimal string into a byte array.

Parameters:
hexString - to convert
Returns:
byte array


Copyright © 2009. All Rights Reserved.