Package one.nio.util
Class Hex
- java.lang.Object
-
- one.nio.util.Hex
-
public final class Hex extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static char[]CAPITALstatic int[]DIGIT_VALUEstatic char[]SMALL
-
Constructor Summary
Constructors Constructor Description Hex()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]parseBytes(String input)static intparseInt(String input)static longparseLong(String input)static StringtoHex(byte[] input)static StringtoHex(byte[] input, char[] digits)static StringtoHex(int n)static StringtoHex(int n, char[] digits)static StringtoHex(long n)static StringtoHex(long n, char[] digits)
-
-
-
Method Detail
-
toHex
public static String toHex(byte[] input)
-
toHex
public static String toHex(byte[] input, char[] digits)
-
toHex
public static String toHex(int n)
-
toHex
public static String toHex(int n, char[] digits)
-
toHex
public static String toHex(long n)
-
toHex
public static String toHex(long n, char[] digits)
-
parseBytes
public static byte[] parseBytes(String input)
-
parseInt
public static int parseInt(String input)
-
parseLong
public static long parseLong(String input)
-
-