Package com.mchange.lang
Class ByteUtils
- java.lang.Object
-
- com.mchange.lang.ByteUtils
-
public final class ByteUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static short
UNSIGNED_MAX_VALUE
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static byte[]
fromHexAscii(java.lang.String s)
static java.lang.String
toHexAscii(byte b)
static java.lang.String
toHexAscii(byte[] bytes)
static java.lang.String
toLowercaseHexAscii(byte b)
static java.lang.String
toLowercaseHexAscii(byte[] bytes)
static short
toUnsigned(byte b)
Deprecated.prefer unsignedPromote(...)static int
unsignedPromote(byte b)
-
-
-
Field Detail
-
UNSIGNED_MAX_VALUE
public static final short UNSIGNED_MAX_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
toUnsigned
public static short toUnsigned(byte b)
Deprecated.prefer unsignedPromote(...)
-
unsignedPromote
public static int unsignedPromote(byte b)
-
toHexAscii
public static java.lang.String toHexAscii(byte b)
-
toLowercaseHexAscii
public static java.lang.String toLowercaseHexAscii(byte b)
-
toHexAscii
public static java.lang.String toHexAscii(byte[] bytes)
-
toLowercaseHexAscii
public static java.lang.String toLowercaseHexAscii(byte[] bytes)
-
fromHexAscii
public static byte[] fromHexAscii(java.lang.String s) throws java.lang.NumberFormatException
- Throws:
java.lang.NumberFormatException
-
-