public class ByteArrayUtil extends Object
| Constructor and Description |
|---|
ByteArrayUtil() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
checkBytes(byte[] bytes,
int offset,
int length,
int expectedLength) |
protected static void |
checkBytesNotNull(byte[] bytes) |
static byte |
toByte(byte[] bytes) |
static byte |
toByte(byte[] bytes,
int offset,
int length) |
static byte[] |
toByteArray(byte value) |
static byte[] |
toByteArray(int value) |
static byte[] |
toByteArray(long value) |
static byte[] |
toByteArray(short value) |
static int |
toInt(byte[] bytes) |
static int |
toInt(byte[] bytes,
int offset,
int length) |
static long |
toLong(byte[] bytes) |
static long |
toLong(byte[] bytes,
int offset,
int length) |
static short |
toShort(byte[] bytes) |
static short |
toShort(byte[] bytes,
int offset,
int length) |
static short |
toUnsignedByte(byte[] bytes) |
static short |
toUnsignedByte(byte[] bytes,
int offset,
int length) |
static long |
toUnsignedInt(byte[] bytes) |
static long |
toUnsignedInt(byte[] bytes,
int offset,
int length) |
static int |
toUnsignedShort(byte[] bytes) |
static int |
toUnsignedShort(byte[] bytes,
int offset,
int length) |
protected static void checkBytesNotNull(byte[] bytes)
protected static void checkBytes(byte[] bytes,
int offset,
int length,
int expectedLength)
public static byte[] toByteArray(byte value)
public static byte[] toByteArray(short value)
public static byte[] toByteArray(int value)
public static byte[] toByteArray(long value)
public static byte toByte(byte[] bytes)
public static byte toByte(byte[] bytes,
int offset,
int length)
public static short toUnsignedByte(byte[] bytes)
public static short toUnsignedByte(byte[] bytes,
int offset,
int length)
public static short toShort(byte[] bytes)
public static short toShort(byte[] bytes,
int offset,
int length)
public static int toUnsignedShort(byte[] bytes)
public static int toUnsignedShort(byte[] bytes,
int offset,
int length)
public static int toInt(byte[] bytes)
public static int toInt(byte[] bytes,
int offset,
int length)
public static long toUnsignedInt(byte[] bytes)
public static long toUnsignedInt(byte[] bytes,
int offset,
int length)
public static long toLong(byte[] bytes)
public static long toLong(byte[] bytes,
int offset,
int length)
Copyright © 2012-2015 Cloudhopper by Twitter. All Rights Reserved.