class Utils
extends java.lang.Object
This class is immutable and thread-safe.
Modifier and Type | Field and Description |
---|---|
private static int |
RADIX
Radix used in encoding and decoding.
|
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
(package private) static int |
digit16(byte b)
Returns the numeric value of the character
b in radix 16. |
(package private) static char |
hexDigit(int b)
Returns the upper case hex digit of the lower 4 bits of the int.
|
private static final int RADIX
static int digit16(byte b) throws DecoderException
b
in radix 16.b
- The byte to be converted.DecoderException
- Thrown when the byte is not valid per Character.digit(char,int)
static char hexDigit(int b)
b
- the input int