public class ArrayUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
arrayFromChunks(Collection<byte[]> chunks,
int totalLength)
Concatenate a collection of byte arrays (chunks) sequentially into one big array
|
static String |
toHexString(byte[] bytes)
Format a byte array as a string of hexadecimal values
|
static String |
toHexString(byte[] bytes,
int columns)
Format a byte array as a string of hexadecimal values
|
static String |
toHexString(byte[] bytes,
int columns,
boolean decorate)
Format a byte array as a string of hexadecimal values
|
public static String toHexString(byte[] bytes)
bytes - The input arraypublic static String toHexString(byte[] bytes, int columns)
bytes - The input arraycolumns - The number of values per rowpublic static String toHexString(byte[] bytes, int columns, boolean decorate)
bytes - The input arraycolumns - The number of values per rowdecorate - If true, prepend "0x" to each byte valuepublic static byte[] arrayFromChunks(Collection<byte[]> chunks, int totalLength)
chunks - The collection of chunkstotalLength - The total number of bytes in all chunksCopyright © 2019 West Ridge Systems. All rights reserved.