|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sibvisions.rad.remote.serializer.AbstractSizedSerializer
com.sibvisions.rad.remote.serializer.MapSerializer
public class MapSerializer
The serializer for any kind of Map
.
Constructor Summary | |
---|---|
MapSerializer()
Constructs a new instance of MapSerializer with support for
HashMap , Hashtable and Properties . |
Method Summary | |
---|---|
int |
getMaxValue()
Gets the maximal value used to detect this type in stream. |
int |
getMinValue()
Gets the minimal value used to detect this type in stream. |
Class<Map> |
getTypeClass()
Gets the type class that can be serialized by this serializer. |
Map |
read(UniversalSerializer pSerializer,
DataInputStream pIn,
int pTypeValue,
TypeCache pCache)
Reads in a serialized object from a stream. |
void |
registerMap(Class<? extends Map> pMapType)
Registers a list type. |
void |
write(UniversalSerializer pSerializer,
DataOutputStream pOut,
Map pObject,
TypeCache pCache)
Writes a serialized object to a stream. |
Methods inherited from class com.sibvisions.rad.remote.serializer.AbstractSizedSerializer |
---|
readSize, writeSize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapSerializer()
MapSerializer
with support for
HashMap
, Hashtable
and Properties
.
Method Detail |
---|
public Class<Map> getTypeClass()
getTypeClass
in interface ITypeSerializer<Map>
public int getMinValue()
getMinValue
in interface ITypeSerializer<Map>
public int getMaxValue()
getMaxValue
in interface ITypeSerializer<Map>
public Map read(UniversalSerializer pSerializer, DataInputStream pIn, int pTypeValue, TypeCache pCache) throws Exception
read
in interface ITypeSerializer<Map>
pSerializer
- the universal serializer.pIn
- stream with serialized contentpTypeValue
- type value.pCache
- the cache for BeanType
definitions
Exception
- if deserialization failspublic void write(UniversalSerializer pSerializer, DataOutputStream pOut, Map pObject, TypeCache pCache) throws Exception
write
in interface ITypeSerializer<Map>
pSerializer
- the universal serializer.pOut
- output stream for the objectpObject
- serializable objectpCache
- the cache for BeanType
definitions
Exception
- if serialization failspublic void registerMap(Class<? extends Map> pMapType)
pMapType
- list type.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |