public class ByteUtil
extends java.lang.Object
| Constructor and Description |
|---|
ByteUtil() |
| Modifier and Type | Method and Description |
|---|---|
static BufferedBytes |
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(BufferedBytes buffer,
byte typ,
int valueLength) |
public static void writeByteHeader(BufferedBytes buffer, byte typ, int valueLength)
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 BufferedBytes 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)