public class ByteUtils
extends java.lang.Object
| 构造器和说明 |
|---|
ByteUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
merger(byte[] bt1,
byte[] bt2) |
static byte[] |
toBytes(int i)
int 转 byte[]
|
static byte[] |
toBytes(long number)
long类型转成byte数组
|
static byte[] |
toBytes(short src)
short[] 转 byte[]
|
static byte[] |
toBytes(short[] src)
short[] 转 byte[]
|
static byte[] |
toBytes(java.lang.String str)
String 转 byte[]
|
static int |
toInt(byte[] src) |
static int |
toInt(byte[] src,
int offset) |
static long |
toLong(byte[] b)
字节数组到long的转换.
|
static short[] |
toShorts(byte[] src)
byte[] 转 short[]
short: 2字节
|
static java.lang.String |
toString(byte[] b) |
public static byte[] toBytes(short[] src)
public static byte[] toBytes(short src)
public static byte[] toBytes(int i)
public static byte[] toBytes(java.lang.String str)
public static byte[] toBytes(long number)
public static int toInt(byte[] src,
int offset)
public static int toInt(byte[] src)
public static long toLong(byte[] b)
public static short[] toShorts(byte[] src)
public static byte[] merger(byte[] bt1,
byte[] bt2)
public static java.lang.String toString(byte[] b)