com.mchange.lang
Class ByteUtils

java.lang.Object
  extended by com.mchange.lang.ByteUtils

public final class ByteUtils
extends Object


Field Summary
static short UNSIGNED_MAX_VALUE
           
 
Method Summary
static byte[] fromHexAscii(String s)
           
static String toHexAscii(byte b)
           
static String toHexAscii(byte[] bytes)
           
static short toUnsigned(byte b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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)

toHexAscii

public static String toHexAscii(byte b)

toHexAscii

public static String toHexAscii(byte[] bytes)

fromHexAscii

public static byte[] fromHexAscii(String s)
                           throws NumberFormatException
Throws:
NumberFormatException