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 $
从类 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.