java.lang.Objectorg.objectweb.telosys.util.serial.MemorySerializer
Constructor Summary | |
MemorySerializer()
|
Method Summary | |
java.lang.Object |
read()
Read the object from the bytes array produced by the last 'write' operation ( returns the last object serialized by this serializer) |
java.lang.Object |
read(byte[] serializedObject)
Read the object from the given bytes array |
byte[] |
write(java.lang.Object obj)
Writes (serializes) the given object "in memory" and returns the result as an array of bytes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MemorySerializer()
Method Detail |
public byte[] write(java.lang.Object obj) throws TelosysException
obj
-
TelosysException
public java.lang.Object read() throws TelosysException
TelosysException
public java.lang.Object read(byte[] serializedObject) throws TelosysException
serializedObject
-
TelosysException