public class ByteArray extends Object
| Modifier and Type | Field and Description |
|---|---|
static byte[] |
EMPTY_BYTE_ARRAY |
| Constructor and Description |
|---|
ByteArray() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
fromHexString(String data) |
static byte[] |
fromLong(long val) |
static byte[] |
fromString(String str) |
static byte[] |
subArray(byte[] input,
int start,
int end)
Generate a subarray of a given byte array.
|
static String |
toHexString(byte[] data) |
static long |
toLong(byte[] b) |
static String |
toStr(byte[] byteArray) |
public static String toHexString(byte[] data)
public static byte[] fromHexString(String data)
public static long toLong(byte[] b)
public static byte[] fromString(String str)
public static String toStr(byte[] byteArray)
public static byte[] fromLong(long val)
public static byte[] subArray(byte[] input,
int start,
int end)
input - the input byte arraystart - the start indexend - the end indexCopyright © 2020. All rights reserved.