public class ByteIdMap extends IdMap implements IdMapDecoder
| Modifier and Type | Field and Description |
|---|---|
static byte |
DATATYPE_ASSOC
The Constant DATATYPE_BYTEARRAY.
|
static byte |
DATATYPE_ASSOCLONG
The Constant DATATYPE_BYTEARRAY.
|
static byte |
DATATYPE_BYTE
The Constant DATATYPE_BYTE.
|
static byte |
DATATYPE_BYTEARRAY
The Constant DATATYPE_BYTEARRAY.
|
static byte |
DATATYPE_CHAR
The Constant DATATYPE_CHAR.
|
static byte |
DATATYPE_CHECK
The Constant CHECKTYPE.
|
static byte |
DATATYPE_CLAZZID
The Constant DATATYPE_MAP.
|
static byte |
DATATYPE_CLAZZNAME
The Constant CLASS-VALUE.
|
static byte |
DATATYPE_CLAZZNAMELONG
The Constant CLASS-VALUE.
|
static byte |
DATATYPE_CLAZZPACKAGE
The Constant CLASS-VALUE.
|
static byte |
DATATYPE_CLAZZSTREAM
The Constant DATATYPE_BYTEARRAY.
|
static byte |
DATATYPE_CLAZZTYP
The Constant DATATYPE_BYTEARRAY.
|
static byte |
DATATYPE_CLAZZTYPLONG
The Constant DATATYPE_BYTEARRAY.
|
static byte |
DATATYPE_DATE
The Constant DATATYPE_BYTEARRAY.
|
static byte |
DATATYPE_DOUBLE
The Constant DATATYPE_DOUBLE.
|
static byte |
DATATYPE_FIXED
The Constant FIXED VALUE.
|
static byte |
DATATYPE_FLOAT
The Constant DATATYPE_FLOAT.
|
static byte |
DATATYPE_INTEGER
The Constant DATATYPE_INTEGER.
|
static byte |
DATATYPE_LIST
The Constant DATATYPE_LIST.
|
static byte |
DATATYPE_LONG
The Constant DATATYPE_INTEGER.
|
static byte |
DATATYPE_MAP
The Constant DATATYPE_MAP.
|
static byte |
DATATYPE_NULL
The Constant NULL-VALUE.
|
static byte |
DATATYPE_SHORT
The Constant DATATYPE_INTEGER.
|
static byte |
DATATYPE_STRING
The Constant DATATYPE_STRING.
|
static byte |
DATATYPE_UNSIGNEDBYTE
The Constant DATATYPE_BYTEARRAY.
|
protected java.util.HashMap<java.lang.Byte,SendableEntityCreatorByte> |
decoderMap
The decoder map.
|
static byte |
LEN_BIG
The Constant LEN_BIG.
|
static byte |
LEN_LAST
The Constant DATATYPE_LAST.
|
static byte |
LEN_LITTLE
The Constant LEN_LITTLE.
|
static byte |
LEN_MID
The Constant LEN_MID.
|
static byte |
LEN_SHORT
The Constant LEN_SHORT.
|
static char |
SPLITTER
The SPLITTER.
|
COLLISION, ID, ITEMS, keyValue, logger, NEW, PRIO, REMOVE, SENDUPDATE, UPDATE, updateListener, updatePropertylistenercreators| Constructor and Description |
|---|
ByteIdMap() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addCreator(SendableEntityCreator createrClass) |
java.lang.Object |
decode(BaseItem value) |
java.lang.Object |
decode(BufferedBytes buffer)
Decode.
|
java.lang.Object |
decode(java.lang.Object value)
Decode.
|
java.lang.Object |
decode(java.lang.String value)
Decode.
|
java.lang.Object |
decode(java.lang.String value,
ByteConverter converter)
Decode.
|
java.lang.Object |
decodeClazz(BufferedBytes buffer,
SendableEntityCreator eventCreater)
Decode.
|
java.lang.Object |
decodeValue(BufferedBytes buffer,
int end)
Gets the decode object.
|
ByteItem |
encode(java.lang.Object entity)
Encode.
|
ByteItem |
encode(java.lang.Object entity,
Filter filter) |
ByteItem |
encodeValue(java.lang.Object value,
Filter filter) |
SendableEntityCreatorByte |
getCreatorDecoderClass(byte typ)
Gets the creator decoder class.
|
AbstractMap |
withCreator(java.lang.String className,
SendableEntityCreator createrClass)
add a Creator to list of all creators.
|
addListener, clear, cloneObject, containsKey, containsValue, entrySet, garbageCollection, get, getCounter, getId, getKey, getKeyValue, getLogger, getObject, getTypList, getUpdateListener, isCaseSensitive, isEmpty, keySet, put, putAll, remove, removeObj, replaceObject, size, startCarbageCollection, startUpdateModell, values, withCaseSensitive, withCounter, withFilter, withIdListener, withKeyValue, withLogger, withSessionId, withUpdateListenergetCreator, getCreatorClass, iterator, removeCreator, withCreator, withCreator, withCreatorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final char SPLITTER
public static final byte DATATYPE_FIXED
public static final byte DATATYPE_NULL
public static final byte DATATYPE_CLAZZID
public static final byte DATATYPE_SHORT
public static final byte DATATYPE_INTEGER
public static final byte DATATYPE_LONG
public static final byte DATATYPE_FLOAT
public static final byte DATATYPE_DOUBLE
public static final byte DATATYPE_DATE
public static final byte DATATYPE_BYTE
public static final byte DATATYPE_UNSIGNEDBYTE
public static final byte DATATYPE_BYTEARRAY
public static final byte DATATYPE_CHAR
public static final byte DATATYPE_CLAZZNAME
public static final byte DATATYPE_CLAZZNAMELONG
public static final byte DATATYPE_CLAZZPACKAGE
public static final byte DATATYPE_CLAZZTYP
public static final byte DATATYPE_CLAZZTYPLONG
public static final byte DATATYPE_ASSOC
public static final byte DATATYPE_ASSOCLONG
public static final byte DATATYPE_CLAZZSTREAM
public static final byte DATATYPE_STRING
public static final byte DATATYPE_LIST
public static final byte DATATYPE_MAP
public static final byte DATATYPE_CHECK
public static final byte LEN_LITTLE
public static final byte LEN_SHORT
public static final byte LEN_MID
public static final byte LEN_BIG
public static final byte LEN_LAST
protected java.util.HashMap<java.lang.Byte,SendableEntityCreatorByte> decoderMap
public boolean addCreator(SendableEntityCreator createrClass)
public AbstractMap withCreator(java.lang.String className, SendableEntityCreator createrClass)
AbstractMapwithCreator in class IdMapclassName - the class namecreaterClass - the creatorpublic ByteItem encode(java.lang.Object entity)
public SendableEntityCreatorByte getCreatorDecoderClass(byte typ)
typ - the typpublic java.lang.Object decode(java.lang.String value)
decode in interface IdMapDecodervalue - the valuepublic java.lang.Object decode(java.lang.String value,
ByteConverter converter)
value - the valueconverter - the Converter for bytes to Stringpublic java.lang.Object decode(java.lang.Object value)
value - the valuepublic java.lang.Object decode(BaseItem value)
decode in interface IdMapDecoderpublic java.lang.Object decode(BufferedBytes buffer)
buffer - the inpublic java.lang.Object decodeClazz(BufferedBytes buffer, SendableEntityCreator eventCreater)
buffer - the ineventCreater - The Creator as Factorypublic java.lang.Object decodeValue(BufferedBytes buffer, int end)
buffer - the inend - EndIndex