org.apache.activemq.util
Class HexSupport
java.lang.Object
org.apache.activemq.util.HexSupport
public final class HexSupport
- extends Object
Used to convert to hex from byte arrays and back.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.