public class Bytes extends Object
Bytes class.
| Constructor and Description |
|---|
Bytes() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getSizeDescriptionBin(long bytes)
getSizeDescriptionBin.
|
static String |
getSizeDescriptionSI(long bytes)
getSizeDescriptionSI.
|
static byte[] |
toByteArray(int value)
toByteArray.
|
static byte[] |
toByteArrayLE(int value)
toByteArrayLE.
|
static String |
toHexString(byte... data)
toHexString.
|
static String |
toHexString(int data)
toHexString.
|
static String |
toHexString(int data,
ByteOrder order)
toHexString.
|
static int |
toInteger(byte[] bytes)
toInteger.
|
static int |
toIntegerLE(byte[] bytes)
toIntegerLE.
|
public static String getSizeDescriptionSI(long bytes)
getSizeDescriptionSI.
bytes - a longString objectpublic static String getSizeDescriptionBin(long bytes)
getSizeDescriptionBin.
bytes - a longString objectpublic static int toInteger(byte[] bytes)
toInteger.
bytes - an array of byte objectspublic static int toIntegerLE(byte[] bytes)
toIntegerLE.
bytes - an array of byte objectspublic static String toHexString(int data)
toHexString.
data - a intString objectpublic static String toHexString(byte... data)
toHexString.
data - a byteString objectpublic static byte[] toByteArray(int value)
toByteArray.
value - a intbyte objectspublic static byte[] toByteArrayLE(int value)
toByteArrayLE.
value - a intbyte objectsCopyright © 2016–2024. All rights reserved.