public final class Hexadecimal extends Object
© Devmel SDK (java) ©
Constructor and Description |
---|
Hexadecimal() |
Modifier and Type | Method and Description |
---|---|
static String |
fromBytes(byte[] src)
Returns the byte array as hexadecimal string presentation
|
static boolean |
is(String src)
Utility routine to check if the string is hexadecimal
|
static byte |
toByte(char src)
Returns the hexadecimal char as byte
|
static byte[] |
toBytes(String src)
Returns the hexadecimal string as byte array
|
public static String fromBytes(byte[] src)
src
- the raw byte arraypublic static boolean is(String src)
src
- the hexadecimal string presentationboolean
indicating whether src is hexadecimalpublic static byte toByte(char src)
src
- the hexadecimal characterpublic static byte[] toBytes(String src)
src
- the hexadecimal string presentation