public final class ByteUtils extends Object
Modifier and Type | Field and Description |
---|---|
static short |
UNSIGNED_MAX_VALUE |
Modifier and Type | Method and Description |
---|---|
static byte[] |
fromHexAscii(String s) |
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) |
public static final short UNSIGNED_MAX_VALUE
public static short toUnsigned(byte b)
public static int unsignedPromote(byte b)
public static String toHexAscii(byte b)
public static String toLowercaseHexAscii(byte b)
public static String toHexAscii(byte[] bytes)
public static String toLowercaseHexAscii(byte[] bytes)
public static byte[] fromHexAscii(String s) throws NumberFormatException
NumberFormatException
Copyright © 2017 com.mchange. All rights reserved.