|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the typepublic interface ITypeSerializer<T>
The ITypeSerializer interface defines standard methods for serialization
and deserialization of a specific type.
| 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<T> |
getTypeClass()
Gets the type class that can be serialized by this serializer. |
T |
read(UniversalSerializer pSerializer,
DataInputStream pIn,
int pTypeValue,
TypeCache pCache)
Reads in a serialized object from a stream. |
void |
write(UniversalSerializer pSerializer,
DataOutputStream pOut,
T pObject,
TypeCache pCache)
Writes a serialized object to a stream. |
| Method Detail |
|---|
Class<T> getTypeClass()
int getMinValue()
int getMaxValue()
T read(UniversalSerializer pSerializer,
DataInputStream pIn,
int pTypeValue,
TypeCache pCache)
throws Exception
pSerializer - the universal serializer.pIn - stream with serialized contentpTypeValue - type value.pCache - the cache for BeanType definitions
Exception - if deserialization fails
void write(UniversalSerializer pSerializer,
DataOutputStream pOut,
T pObject,
TypeCache pCache)
throws Exception
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 | |||||||||