|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sibvisions.rad.remote.serializer.BeanSerializer
public class BeanSerializer
The serializer for Object
. It uses the BeanType
for object
serialization.
Field Summary | |
---|---|
static int |
TYPE_BEAN
value of type. |
Constructor Summary | |
---|---|
BeanSerializer()
|
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<AbstractBean> |
getTypeClass()
Gets the type class that can be serialized by this serializer. |
AbstractBean |
read(UniversalSerializer pSerializer,
DataInputStream pIn,
int pTypeValue,
TypeCache pCache)
Reads in a serialized object from a stream. |
void |
write(UniversalSerializer pSerializer,
DataOutputStream pOut,
AbstractBean pObject,
TypeCache pCache)
Writes a serialized object to a stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TYPE_BEAN
Constructor Detail |
---|
public BeanSerializer()
Method Detail |
---|
public Class<AbstractBean> getTypeClass()
getTypeClass
in interface ITypeSerializer<AbstractBean>
public int getMinValue()
getMinValue
in interface ITypeSerializer<AbstractBean>
public int getMaxValue()
getMaxValue
in interface ITypeSerializer<AbstractBean>
public AbstractBean read(UniversalSerializer pSerializer, DataInputStream pIn, int pTypeValue, TypeCache pCache) throws Exception
read
in interface ITypeSerializer<AbstractBean>
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, AbstractBean pObject, TypeCache pCache) throws Exception
write
in interface ITypeSerializer<AbstractBean>
pSerializer
- the universal serializer.pOut
- output stream for the objectpObject
- serializable objectpCache
- the cache for BeanType
definitions
Exception
- if serialization fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |