Top Fields Constructors Methods
com.mchange.lang

public final Class ByteUtils

extends Object
Class Inheritance
Imports
java.io.StringReader, .StringWriter, .IOException

Field Summary

Modifier and TypeField and Description
public static final short

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static void
pack-priv static void
public static byte[]
private static int
fromHexDigit(int c)

public static String
toHexAscii(byte b)

public static String
toHexAscii(byte[] bytes)

private static char
toHexDigit(int h)

public static String
public static String
toLowercaseHexAscii(byte[] bytes)

private static char
public static short
toUnsigned(byte b)
Deprecated prefer unsignedPromote(...)

public static int
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

UNSIGNED_MAX_VALUEback to summary
public static final short UNSIGNED_MAX_VALUE

Constructor Detail

ByteUtilsback to summary
private ByteUtils()

Method Detail

addHexAsciiback to summary
pack-priv static void addHexAscii(byte b, StringWriter sw)
addLowercaseHexAsciiback to summary
pack-priv static void addLowercaseHexAscii(byte b, StringWriter sw)
fromHexAsciiback to summary
public static byte[] fromHexAscii(String s) throws NumberFormatException
fromHexDigitback to summary
private static int fromHexDigit(int c) throws NumberFormatException
toHexAsciiback to summary
public static String toHexAscii(byte b)
toHexAsciiback to summary
public static String toHexAscii(byte[] bytes)
toHexDigitback to summary
private static char toHexDigit(int h)
toLowercaseHexAsciiback to summary
public static String toLowercaseHexAscii(byte b)
toLowercaseHexAsciiback to summary
public static String toLowercaseHexAscii(byte[] bytes)
toLowercaseHexDigitback to summary
private static char toLowercaseHexDigit(int h)
toUnsignedback to summary
public static short toUnsigned(byte b)

Deprecated

prefer unsignedPromote(...)

unsignedPromoteback to summary
public static int unsignedPromote(byte b)