public class MinBin extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MinBin.TagSerializer |
| Modifier and Type | Field and Description |
|---|---|
static byte |
ARRAY_MASK |
static byte |
BOOL |
static byte |
CHAR |
static MinBin |
DefaultInstance |
static byte |
DOUBLE |
static byte |
DOUBLE_ARR |
static byte |
END |
static Object |
END_MARKER |
static byte |
FLOAT |
static byte |
FLOAT_ARR |
static byte |
HANDLE |
static byte |
INT_16 |
static byte |
INT_32 |
static byte |
INT_64 |
static byte |
INT_8 |
static byte |
NULL |
static byte |
OBJECT |
static byte |
RESERV |
static byte |
SEQUENCE |
static byte |
STRING |
static byte |
TAG |
static byte |
UNSIGN_MASK |
| Constructor and Description |
|---|
MinBin() |
| Modifier and Type | Method and Description |
|---|---|
static byte |
extractNumBytes(byte type) |
static byte |
getBaseType(byte type)
extract base type includin unsignend flag excluding array flag
|
MinBin.TagSerializer |
getSerializerFor(Object toWrite) |
MinBin.TagSerializer |
getSerializerForId(int tagId) |
static byte |
getTagCode(byte tagId)
get tag code as written to stream from tag id
|
static byte |
getTagId(byte type)
extract tag id/nr from byte
|
static boolean |
isArray(byte type)
is primitive and array array
|
static boolean |
isPrimitive(byte type)
return wether type is primitive or primitive array
|
static boolean |
isSigned(byte type)
is primitive type signed ?
|
static boolean |
isTag(byte type)
return wether type is a tag
|
static void |
print(byte[] minbinMsg) |
static void |
print(Object obj) |
static String |
print2String(byte[] minbinMsg) |
void |
registerTag(Class clazz,
MinBin.TagSerializer ts) |
void |
registerTag(MinBin.TagSerializer ts) |
public static final Object END_MARKER
public static MinBin DefaultInstance
public static final byte INT_8
public static final byte INT_16
public static final byte INT_32
public static final byte INT_64
public static final byte TAG
public static final byte END
public static final byte RESERV
public static final byte UNSIGN_MASK
public static final byte ARRAY_MASK
public static final byte CHAR
public static final byte NULL
public static final byte STRING
public static final byte OBJECT
public static final byte SEQUENCE
public static final byte DOUBLE
public static final byte DOUBLE_ARR
public static final byte FLOAT
public static final byte FLOAT_ARR
public static final byte BOOL
public static final byte HANDLE
public static boolean isPrimitive(byte type)
public static boolean isTag(byte type)
public static byte getTagId(byte type)
public static byte getTagCode(byte tagId)
public static boolean isSigned(byte type)
public static boolean isArray(byte type)
public static byte extractNumBytes(byte type)
public static void print(byte[] minbinMsg)
public static String print2String(byte[] minbinMsg)
public static void print(Object obj)
public void registerTag(MinBin.TagSerializer ts)
public void registerTag(Class clazz, MinBin.TagSerializer ts)
public MinBin.TagSerializer getSerializerForId(int tagId)
public MinBin.TagSerializer getSerializerFor(Object toWrite)
public static byte getBaseType(byte type)
type - Copyright © 2015. All rights reserved.