public class ByteUtil
extends java.lang.Object
| 构造器和说明 |
|---|
ByteUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static java.lang.String |
byteTo(long size) |
static byte[] |
decodeBASE64(java.lang.String encoded) |
static java.lang.String |
encodeBASE64(byte[] array) |
static java.lang.String |
encodeBASE64(byte[] array,
int len) |
static byte[] |
readBytes(java.io.ByteArrayInputStream bi,
int len) |
static int |
readInt(java.io.ByteArrayInputStream bi) |
static long |
readLong(java.io.ByteArrayInputStream bi) |
static void |
writeInt(java.io.ByteArrayOutputStream bo,
int i) |
static void |
writeLong(java.io.ByteArrayOutputStream bo,
long l) |
public static java.lang.String byteTo(long size)
public static java.lang.String encodeBASE64(byte[] array)
public static byte[] decodeBASE64(java.lang.String encoded)
public static java.lang.String encodeBASE64(byte[] array,
int len)
public static int readInt(java.io.ByteArrayInputStream bi)
public static void writeInt(java.io.ByteArrayOutputStream bo,
int i)
public static long readLong(java.io.ByteArrayInputStream bi)
public static void writeLong(java.io.ByteArrayOutputStream bo,
long l)
public static byte[] readBytes(java.io.ByteArrayInputStream bi,
int len)