|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectiitb.con.ds.InstanceSerializer
public class InstanceSerializer
InstanceSerializer serializes Instance to bytes and vice versa
Instance
Constructor Summary | |
---|---|
InstanceSerializer(ItemTable<java.lang.String,java.lang.Short,Type> typeTable)
Initializes with TypeTable |
Method Summary | |
---|---|
java.lang.Object |
attributeDeSerialize(java.nio.ByteBuffer buf,
java.lang.Object name)
Deserializes the given bytes to object |
Instance |
deSerialize(java.nio.ByteBuffer buf)
Deserializes the given bytes as Instance |
java.nio.ByteBuffer |
serialize(Instance instance)
Serializes Instance to bytes |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InstanceSerializer(ItemTable<java.lang.String,java.lang.Short,Type> typeTable)
typeTable
- Type tableTypeTable
Method Detail |
---|
public java.lang.Object attributeDeSerialize(java.nio.ByteBuffer buf, java.lang.Object name)
attributeDeSerialize
in interface ItemSerializer<Instance>
buf
- bytes as ByteBuffer
name
- attribute name
public Instance deSerialize(java.nio.ByteBuffer buf)
deSerialize
in interface ItemSerializer<Instance>
buf
- bytes as ByteBuffer
public java.nio.ByteBuffer serialize(Instance instance)
serialize
in interface ItemSerializer<Instance>
instance
- Instance
ByteBuffer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |