类 Hexes.Decoder
- java.lang.Object
-
- net.dongliu.commons.Hexes.Decoder
-
- 封闭类:
- Hexes
public static class Hexes.Decoder extends java.lang.ObjectHex decoder. This class is immutable.
-
-
构造器概要
构造器 构造器 说明 Decoder()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 byte[]decode(java.lang.CharSequence data)Converts a sequence of chars representing hexadecimal values into an array of bytes of those same values.byte[]decode(java.lang.String data)Converts a string representing hexadecimal values into an array of bytes of those same values.
-
-
-
方法详细资料
-
decode
public byte[] decode(java.lang.String data) throws HexDecodeExceptionConverts a string representing hexadecimal values into an array of bytes of those same values.- 参数:
data- A String of characters containing hexadecimal digits- 返回:
- A byte array containing binary data decoded from the supplied char array.
- 抛出:
HexDecodeException
-
decode
public byte[] decode(java.lang.CharSequence data) throws HexDecodeExceptionConverts a sequence of chars representing hexadecimal values into an array of bytes of those same values.- 参数:
data- A sequence of chars containing hexadecimal digits- 返回:
- A byte array containing binary data decoded from the supplied char array.
- 抛出:
HexDecodeException
-
-