Class EncodingUtils
- java.lang.Object
-
- com.salesforce.datacloud.jdbc.internal.EncodingUtils
-
@Immutable public final class EncodingUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidbyteToBase16(byte value, char[] dest, int destOffset)Encodes the specified byte, and returns the encodedString.static booleanisValidBase16Character(char b)Returns whether the givencharis a valid hex character.static booleanisValidBase16String(CharSequence value)Returns whether theCharSequenceis a valid hex string.static voidlongToBase16String(long value, char[] dest, int destOffset)Appends the base16 encoding of the specifiedvalueto thedest.
-
-
-
Method Detail
-
longToBase16String
public static void longToBase16String(long value, char[] dest, int destOffset)Appends the base16 encoding of the specifiedvalueto thedest.- Parameters:
value- the value to be converted.dest- the destination char array.destOffset- the starting offset in the destination char array.
-
byteToBase16
public static void byteToBase16(byte value, char[] dest, int destOffset)Encodes the specified byte, and returns the encodedString.- Parameters:
value- the value to be converted.dest- the destination char array.destOffset- the starting offset in the destination char array.
-
isValidBase16String
public static boolean isValidBase16String(CharSequence value)
Returns whether theCharSequenceis a valid hex string.
-
isValidBase16Character
public static boolean isValidBase16Character(char b)
Returns whether the givencharis a valid hex character.
-
-