Package org.nustaq.serialization.minbin
Class MinBin
java.lang.Object
org.nustaq.serialization.minbin.MinBin
Date: 06.04.2014
Time: 23:22
To change this template use File | Settings | File Templates.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final byte
static final byte
static final byte
static MinBin
static final byte
static final byte
static final byte
static final Object
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte
extractNumBytes
(byte type) static byte
getBaseType
(byte type) extract base type includin unsignend flag excluding array flaggetSerializerFor
(Object toWrite) getSerializerForId
(int tagId) static byte
getTagCode
(byte tagId) get tag code as written to stream from tag idstatic byte
getTagId
(byte type) extract tag id/nr from bytestatic boolean
isArray
(byte type) is primitive and array arraystatic boolean
isPrimitive
(byte type) return wether type is primitive or primitive arraystatic boolean
isSigned
(byte type) is primitive type signed ?static boolean
isTag
(byte type) return wether type is a tagstatic void
print
(byte[] minbinMsg) static void
static String
print2String
(byte[] minbinMsg) void
registerTag
(Class clazz, MinBin.TagSerializer ts) void
-
Field Details
-
END_MARKER
-
DefaultInstance
-
INT_8
public static final byte INT_8- See Also:
-
INT_16
public static final byte INT_16- See Also:
-
INT_32
public static final byte INT_32- See Also:
-
INT_64
public static final byte INT_64- See Also:
-
TAG
public static final byte TAG- See Also:
-
END
public static final byte END- See Also:
-
RESERV
public static final byte RESERV- See Also:
-
UNSIGN_MASK
public static final byte UNSIGN_MASK- See Also:
-
ARRAY_MASK
public static final byte ARRAY_MASK- See Also:
-
CHAR
public static final byte CHAR- See Also:
-
NULL
public static final byte NULL- See Also:
-
STRING
public static final byte STRING- See Also:
-
OBJECT
public static final byte OBJECT- See Also:
-
SEQUENCE
public static final byte SEQUENCE- See Also:
-
DOUBLE
public static final byte DOUBLE- See Also:
-
DOUBLE_ARR
public static final byte DOUBLE_ARR- See Also:
-
FLOAT
public static final byte FLOAT- See Also:
-
FLOAT_ARR
public static final byte FLOAT_ARR- See Also:
-
BOOL
public static final byte BOOL- See Also:
-
HANDLE
public static final byte HANDLE- See Also:
-
-
Constructor Details
-
MinBin
public MinBin()
-
-
Method Details
-
isPrimitive
public static boolean isPrimitive(byte type) return wether type is primitive or primitive array -
isTag
public static boolean isTag(byte type) return wether type is a tag -
getTagId
public static byte getTagId(byte type) extract tag id/nr from byte -
getTagCode
public static byte getTagCode(byte tagId) get tag code as written to stream from tag id -
isSigned
public static boolean isSigned(byte type) is primitive type signed ? -
isArray
public static boolean isArray(byte type) is primitive and array array -
extractNumBytes
public static byte extractNumBytes(byte type) -
print
public static void print(byte[] minbinMsg) -
print2String
-
print
-
registerTag
-
registerTag
-
getSerializerForId
-
getSerializerFor
-
getBaseType
public static byte getBaseType(byte type) extract base type includin unsignend flag excluding array flag- Parameters:
type
-- Returns:
-