Package com.mchange.lang
Class ByteUtils
java.lang.Object
com.mchange.lang.ByteUtils
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
static String
toHexAscii
(byte b) static String
toHexAscii
(byte[] bytes) static String
toLowercaseHexAscii
(byte b) static String
toLowercaseHexAscii
(byte[] bytes) static short
toUnsigned
(byte b) Deprecated.prefer unsignedPromote(...)static int
unsignedPromote
(byte b)
-
Field Details
-
UNSIGNED_MAX_VALUE
public static final short UNSIGNED_MAX_VALUE- See Also:
-
-
Method Details
-
toUnsigned
public static short toUnsigned(byte b) Deprecated.prefer unsignedPromote(...) -
unsignedPromote
public static int unsignedPromote(byte b) -
toHexAscii
-
toLowercaseHexAscii
-
toHexAscii
-
toLowercaseHexAscii
-
fromHexAscii
- Throws:
NumberFormatException
-