public class ByteUtil
extends java.lang.Object
| Constructor and Description |
|---|
ByteUtil() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
clone(byte[] entity) |
static ByteBuffer |
getBuffer(int len) |
static byte |
getGroup(byte typ) |
static java.lang.String |
getStringTyp(byte typ) |
static byte |
getSubGroup(byte typ) |
static byte |
getTyp(byte group,
byte subGroup) |
static byte |
getTyp(byte typ,
int len,
boolean isLast) |
static int |
getTypLen(byte typ,
int len,
boolean isLast) |
static boolean |
isGroup(byte typ)
CHeck if the Typ is typ of Group
|
static boolean |
isPrimitive(byte typ) |
static void |
writeByteHeader(ByteBuffer buffer,
byte typ,
int valueLength) |
public static void writeByteHeader(ByteBuffer buffer, byte typ, int valueLength)
public static byte[] clone(byte[] entity)
public static byte getTyp(byte group,
byte subGroup)
public static byte getTyp(byte typ,
int len,
boolean isLast)
public static int getTypLen(byte typ,
int len,
boolean isLast)
public static ByteBuffer getBuffer(int len)
public static boolean isPrimitive(byte typ)
public static boolean isGroup(byte typ)
typ - the the typ of datapublic static java.lang.String getStringTyp(byte typ)
public static byte getGroup(byte typ)
public static byte getSubGroup(byte typ)