@Immutable public final class EncodingUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
byteToBase16(byte value,
char[] dest,
int destOffset)
Encodes the specified byte, and returns the encoded
String. |
static boolean |
isValidBase16Character(char b)
Returns whether the given
char is a valid hex character. |
static boolean |
isValidBase16String(CharSequence value)
Returns whether the
CharSequence is a valid hex string. |
static void |
longToBase16String(long value,
char[] dest,
int destOffset)
Appends the base16 encoding of the specified
value to the dest. |
public static void longToBase16String(long value,
char[] dest,
int destOffset)
value to the dest.value - the value to be converted.dest - the destination char array.destOffset - the starting offset in the destination char array.public static void byteToBase16(byte value,
char[] dest,
int destOffset)
String.value - the value to be converted.dest - the destination char array.destOffset - the starting offset in the destination char array.public static boolean isValidBase16String(CharSequence value)
CharSequence is a valid hex string.public static boolean isValidBase16Character(char b)
char is a valid hex character.Copyright © 2025. All rights reserved.