|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.remote.UniversalSerializer
public final class UniversalSerializer
The UniversalSerializer converts an object state into a byte stream in such a way that
the byte stream can be converted back into a copy of the object.
ISerializer| Constructor Summary | |
|---|---|
UniversalSerializer()
Creates a new instance of UniversalSerializer with default
serializer registrations. |
|
| Method Summary | |
|---|---|
ITypeSerializer |
getTypeSerializer(Class<?> pTypeClass)
Gets the ITypeSerializer for a type value. |
ITypeSerializer |
getTypeSerializer(int pTypeValue)
Gets the ITypeSerializer for a type value. |
ITypeSerializer |
getTypeSerializer(Object pObject)
Gets the ITypeSerializer for a type value. |
Object |
read(DataInputStream pIn)
Reads in a serialized object from a stream. |
Object |
read(DataInputStream pIn,
TypeCache pCache)
Reads in a serialized object from a stream. |
void |
registerTypeSerializer(ITypeSerializer pTypeSerializer)
Registers a type serializer. |
void |
unregisterTypeSerializer(ITypeSerializer pTypeSerializer)
Unregisters a type serializer. |
void |
write(DataOutputStream pOut,
Object pObject)
Writes a serialized object to a stream. |
void |
write(DataOutputStream pOut,
Object 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 |
| Constructor Detail |
|---|
public UniversalSerializer()
UniversalSerializer with default
serializer registrations.
| Method Detail |
|---|
public final Object read(DataInputStream pIn)
throws Exception
read in interface ISerializerpIn - stream with serialized content
Exception - if deserialization fails
public final void write(DataOutputStream pOut,
Object pObject)
throws Exception
write in interface ISerializerpOut - output stream for the objectpObject - serializable object
Exception - if serialization fails
public final Object read(DataInputStream pIn,
TypeCache pCache)
throws Exception
pIn - stream with serialized contentpCache - the cache for optimized bean transfer
Exception - if deserialization fails
public final void write(DataOutputStream pOut,
Object pObject,
TypeCache pCache)
throws Exception
pOut - output stream for the objectpObject - serializable objectpCache - the cache for optimized bean transfer
Exception - if serialization failspublic void registerTypeSerializer(ITypeSerializer pTypeSerializer)
pTypeSerializer - the type serializer.
IllegalArgumentException - if the byte range is already usedpublic void unregisterTypeSerializer(ITypeSerializer pTypeSerializer)
pTypeSerializer - the type serializer.
public ITypeSerializer getTypeSerializer(int pTypeValue)
throws IOException
pTypeValue - the type value.
IOException - if the type value is unknown.
public ITypeSerializer getTypeSerializer(Class<?> pTypeClass)
throws IOException
pTypeClass - the type value.
IOException - if the type value is unknown.
public ITypeSerializer getTypeSerializer(Object pObject)
throws IOException
pObject - the type value.
IOException - if the type value is unknown.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||