public class BinUtils extends Object
| Constructor and Description |
|---|
BinUtils() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
booleanToByteArray(Boolean inBoolean) |
static boolean |
byteArrayToBoolean(byte[] data) |
static Date |
byteArrayToDate(byte[] dateBuffer) |
static double |
byteArrayToDouble(byte[] data) |
static float |
byteArrayToFloat(byte[] data) |
static float |
byteArrayToFloat(byte[] value,
int index) |
static int |
byteArrayToInt(byte[] bytes) |
static int |
byteArrayToInt(byte[] value,
int index) |
static long |
byteArrayToLong(byte[] bytes) |
static long |
byteArrayToLong(byte[] value,
int index) |
static Short |
byteArrayToShort(byte[] data) |
static String |
byteArrayToString(byte[] value) |
static String |
byteArrayToString(byte[] value,
int index,
int length) |
static byte[] |
dateToByteArray(Date value) |
static byte[] |
doubleToByteArray(Double inDouble) |
static void |
dumpByteArray(byte[] array) |
static void |
dumpUnsetted(byte[] unsetted) |
static byte[] |
floatToByteArray(Float inFloat) |
static byte[] |
intToByteArray(int inInt) |
static byte[] |
longToByteArray(long inLong) |
static byte[] |
longToByteArrayLittleEndian(long inLong) |
static byte[] |
readInputStream(InputStream in) |
static int |
readInt(byte[] bytes,
int index) |
static short |
readShort(byte[] value,
int index) |
static String |
readString(ByteBuffer buffer,
int length) |
static byte[] |
shortToByteArray(short inShort) |
static byte[] |
stringToByteArray(String value) |
public static byte[] readInputStream(InputStream in) throws IOException
IOExceptionpublic static byte[] longToByteArray(long inLong)
public static byte[] longToByteArrayLittleEndian(long inLong)
public static byte[] intToByteArray(int inInt)
public static long byteArrayToLong(byte[] bytes)
public static int byteArrayToInt(byte[] bytes)
public static byte[] floatToByteArray(Float inFloat)
public static float byteArrayToFloat(byte[] data)
public static double byteArrayToDouble(byte[] data)
public static byte[] doubleToByteArray(Double inDouble)
public static byte[] booleanToByteArray(Boolean inBoolean)
public static boolean byteArrayToBoolean(byte[] data)
public static String byteArrayToString(byte[] value)
public static String byteArrayToString(byte[] value, int index, int length)
public static Short byteArrayToShort(byte[] data)
public static byte[] shortToByteArray(short inShort)
public static byte[] stringToByteArray(String value)
public static byte[] dateToByteArray(Date value)
public static Date byteArrayToDate(byte[] dateBuffer)
public static void dumpByteArray(byte[] array)
public static int readInt(byte[] bytes,
int index)
public static short readShort(byte[] value,
int index)
public static int byteArrayToInt(byte[] value,
int index)
public static long byteArrayToLong(byte[] value,
int index)
public static float byteArrayToFloat(byte[] value,
int index)
public static String readString(ByteBuffer buffer, int length)
public static void dumpUnsetted(byte[] unsetted)
Copyright © 2019 OpenSource BIM. All rights reserved.