|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.cafesoft.core.util.ByteUtils
ByteUtils provides convenience methods for byte manipulations.
| Constructor Summary | |
ByteUtils()
|
|
| Method Summary | |
static byte[] |
concatenate(byte[] l,
byte[] r)
Return a byte array concatenated from two byte arrays. |
static byte[][] |
split(byte[] src,
int n)
Return a two dimensional byte array from a single byte array. |
static String |
toHex(byte[] block)
Return hex values from a string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ByteUtils()
| Method Detail |
public static byte[] concatenate(byte[] l,
byte[] r)
l - the left side of the new byte array.r - the right side of the new byte array.
public static byte[][] split(byte[] src,
int n)
src - the byte array that will be split.n - the index where the input array will be split.
public static String toHex(byte[] block)
block - the byte array to convert to hex.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||