public class BitConvert
extends java.lang.Object
Constructor and Description |
---|
BitConvert() |
Modifier and Type | Method and Description |
---|---|
static int |
HostToMac16(short x) |
static int |
HostToMac32(int x) |
static boolean |
isNullOrEmpty(byte[] data) |
static int |
MacToHost16(short x) |
static int |
MacToHost32(int x) |
static boolean |
toBoolean(byte[] data) |
static byte[] |
toBytes(boolean enabled) |
static byte[] |
toBytes(int value) |
static byte[] |
toBytes(long value) |
static byte[] |
toBytes(java.lang.String value) |
static int |
toInteger(byte[] data) |
static int |
toInteger(byte[] data,
int radix) |
static int |
toInteger(byte[] data,
int offset,
int length) |
static int |
toInteger(byte[] data,
int offset,
int length,
int radix) |
static long |
toLong(byte[] data) |
static long |
toLong(byte[] data,
int radix) |
static java.lang.String |
toRawString(byte[] data) |
static java.lang.String |
toRawString(byte[] data,
int offset,
int length) |
static short |
toShort(byte[] data) |
static short |
toShort(byte[] data,
int radix) |
static short |
toShort(byte[] data,
int offset,
int length) |
static short |
toShort(byte[] data,
int offset,
int length,
int radix) |
static java.lang.String |
toString(byte[] data) |
static java.lang.String |
toString(byte[] data,
int offset,
int length) |
public static boolean isNullOrEmpty(byte[] data)
public static java.lang.String toString(byte[] data)
public static java.lang.String toString(byte[] data, int offset, int length)
public static java.lang.String toRawString(byte[] data)
public static java.lang.String toRawString(byte[] data, int offset, int length)
public static short toShort(byte[] data)
public static short toShort(byte[] data, int offset, int length)
public static short toShort(byte[] data, int radix)
public static short toShort(byte[] data, int offset, int length, int radix)
public static int toInteger(byte[] data)
public static int toInteger(byte[] data, int offset, int length)
public static int toInteger(byte[] data, int radix)
public static int toInteger(byte[] data, int offset, int length, int radix)
public static long toLong(byte[] data)
public static long toLong(byte[] data, int radix)
public static boolean toBoolean(byte[] data)
public static byte[] toBytes(java.lang.String value)
public static byte[] toBytes(int value)
public static byte[] toBytes(long value)
public static byte[] toBytes(boolean enabled)
public static int MacToHost16(short x)
public static int MacToHost32(int x)
public static int HostToMac16(short x)
public static int HostToMac32(int x)