com.taobao.metamorphosis.utils
类 HexSupport

java.lang.Object
  继承者 com.taobao.metamorphosis.utils.HexSupport

public final class HexSupport
extends Object

Used to convert to hex from byte arrays and back.

版本:
$Revision: 1.2 $

方法摘要
static byte[] toBytesFromHex(String hex)
           
static String toHexFromBytes(byte[] bytes)
           
static String toHexFromInt(int value, boolean trim)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

方法详细信息

toBytesFromHex

public static byte[] toBytesFromHex(String hex)
参数:
hex -
返回:

toHexFromBytes

public static String toHexFromBytes(byte[] bytes)
参数:
bytes -
返回:

toHexFromInt

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


Copyright © 2010–2013. All rights reserved.