org.apache.activemq.util
Class HexSupport

java.lang.Object
  extended by org.apache.activemq.util.HexSupport

public final class HexSupport
extends Object

Used to convert to hex from byte arrays and back.


Method Summary
static byte[] toBytesFromHex(String hex)
           
static String toHexFromBytes(byte[] bytes)
           
static String toHexFromInt(int value, boolean trim)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toBytesFromHex

public static byte[] toBytesFromHex(String hex)
Parameters:
hex -
Returns:

toHexFromBytes

public static String toHexFromBytes(byte[] bytes)
Parameters:
bytes -
Returns:

toHexFromInt

public static String toHexFromInt(int value,
                                  boolean trim)
Parameters:
value -
trim - if the leading 0's should be trimmed off.
Returns:


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.