Package org.apache.tomcat.util.buf
Class HexUtils
java.lang.Object
org.apache.tomcat.util.buf.HexUtils
Tables useful when converting byte arrays to and from strings of hexadecimal digits. Code from Ajp11, from Apache's
JServ.
- Author:
- Craig R. McClanahan
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
fromHexString
(String input) static int
getDec
(int index) static byte
getHex
(int index) static String
toHexString
(byte[] bytes) static String
toHexString
(char c)
-
Constructor Details
-
HexUtils
public HexUtils()
-
-
Method Details
-
getDec
public static int getDec(int index) -
getHex
public static byte getHex(int index) -
toHexString
-
toHexString
-
fromHexString
-