org.apache.kahadb.util
Class HexSupport
java.lang.Object
org.apache.kahadb.util.HexSupport
public final class HexSupport
- extends Object
Used to convert to hex from byte arrays and back.
- Version:
- $Revision: 712224 $
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-2011 Apache Software Foundation. All Rights Reserved.