Package org.xipki.util
Class Hex
- java.lang.Object
-
- org.xipki.util.Hex
-
public class Hex extends Object
HEX encoder and decoder.- Since:
- 3.0.1
- Author:
- Lijun Liao (xipki)
-
-
Constructor Summary
Constructors Constructor Description Hex()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]decode(byte[] array)static byte[]decode(char[] data)static byte[]decode(String hex)static bytedecodeSingle(byte[] array, int offset)static Stringencode(byte[] bytes)static char[]encodeToChars(byte[] data)static char[]encodeToUpperChars(byte[] data)static StringencodeUpper(byte[] bytes)
-
-
-
Method Detail
-
encode
public static String encode(byte[] bytes)
-
encodeToChars
public static char[] encodeToChars(byte[] data)
-
encodeUpper
public static String encodeUpper(byte[] bytes)
-
encodeToUpperChars
public static char[] encodeToUpperChars(byte[] data)
-
decode
public static byte[] decode(byte[] array)
-
decode
public static byte[] decode(String hex)
-
decode
public static byte[] decode(char[] data)
-
decodeSingle
public static byte decodeSingle(byte[] array, int offset)
-
-