rebuild.util
Class BitConverter
java.lang.Object
rebuild.util.BitConverter
public final class BitConverter
- extends java.lang.Object
Data type converter, byte order is Little Endian.
- Since:
- BBX 1.2.0
Method Summary |
static byte[] |
getBytes(char value)
|
static byte[] |
getBytes(java.lang.Character value)
|
static byte[] |
getBytes(double value)
|
static byte[] |
getBytes(java.lang.Double value)
|
static byte[] |
getBytes(float value)
|
static byte[] |
getBytes(java.lang.Float value)
|
static byte[] |
getBytes(int value)
|
static byte[] |
getBytes(java.lang.Integer value)
|
static byte[] |
getBytes(long value)
|
static byte[] |
getBytes(java.lang.Long value)
|
static byte[] |
getBytes(short value)
|
static byte[] |
getBytes(java.lang.Short value)
|
static char |
toChar(byte[] value,
int startIndex)
|
static java.lang.Character |
toCharacter(byte[] value,
int startIndex)
|
static double |
toDouble(byte[] value,
int startIndex)
|
static java.lang.Double |
toDoubleObject(byte[] value,
int startIndex)
|
static float |
toFloat(byte[] value,
int startIndex)
|
static java.lang.Float |
toFloatObject(byte[] value,
int startIndex)
|
static short |
toInt16(byte[] value,
int startIndex)
|
static int |
toInt32(byte[] value,
int startIndex)
|
static long |
toInt64(byte[] value,
int startIndex)
|
static java.lang.Integer |
toInteger(byte[] value,
int startIndex)
|
static java.lang.Long |
toLong(byte[] value,
int startIndex)
|
static java.lang.Short |
toShort(byte[] value,
int startIndex)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BitConverter
public BitConverter()
getBytes
public static byte[] getBytes(java.lang.Short value)
getBytes
public static byte[] getBytes(short value)
getBytes
public static byte[] getBytes(java.lang.Integer value)
getBytes
public static byte[] getBytes(int value)
getBytes
public static byte[] getBytes(java.lang.Long value)
getBytes
public static byte[] getBytes(long value)
getBytes
public static byte[] getBytes(java.lang.Character value)
getBytes
public static byte[] getBytes(char value)
getBytes
public static byte[] getBytes(java.lang.Float value)
getBytes
public static byte[] getBytes(float value)
getBytes
public static byte[] getBytes(java.lang.Double value)
getBytes
public static byte[] getBytes(double value)
toShort
public static java.lang.Short toShort(byte[] value,
int startIndex)
toInt16
public static short toInt16(byte[] value,
int startIndex)
toInteger
public static java.lang.Integer toInteger(byte[] value,
int startIndex)
toInt32
public static int toInt32(byte[] value,
int startIndex)
toLong
public static java.lang.Long toLong(byte[] value,
int startIndex)
toInt64
public static long toInt64(byte[] value,
int startIndex)
toCharacter
public static java.lang.Character toCharacter(byte[] value,
int startIndex)
toChar
public static char toChar(byte[] value,
int startIndex)
toFloatObject
public static java.lang.Float toFloatObject(byte[] value,
int startIndex)
toFloat
public static float toFloat(byte[] value,
int startIndex)
toDoubleObject
public static java.lang.Double toDoubleObject(byte[] value,
int startIndex)
toDouble
public static double toDouble(byte[] value,
int startIndex)