|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sibvisions.rad.remote.ByteSerializer
public final class ByteSerializer
The ByteSerializer
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. For simple types, the conversion
is not VM dependent, e.g. serialization can be done with jdk 1.3 and deserialization can be done
with jdk 1.5.
All complex types are serialized via VM serialization mode.
ISerializer
Constructor Summary | |
---|---|
ByteSerializer()
Creates a new instance of ByteSerializer . |
Method Summary | |
---|---|
Object |
read(DataInputStream pIn)
Reads in an object from a serialized DataInputStream . |
void |
write(DataOutputStream pOut,
Object pObject)
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 ByteSerializer()
ByteSerializer
.
Method Detail |
---|
public final void write(DataOutputStream pOut, Object pObject) throws Exception
write
in interface ISerializer
pOut
- output stream for the objectpObject
- serializable object
Exception
- if serialization failspublic final Object read(DataInputStream pIn) throws Exception
DataInputStream
.
read
in interface ISerializer
pIn
- serialized DataInputStream
Exception
- if deserialization fails or if the object type is TYPE_OBJECT
and the object cannot be read
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |