public class MemorySerializer extends Object
| Constructor and Description |
|---|
MemorySerializer()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Object |
read()
Read the object from the bytes array produced by the last 'write' operation
( returns the last object serialized by this serializer) |
Object |
read(byte[] serializedObject)
Read the object from the given bytes array
|
byte[] |
write(Object obj)
Writes (serializes) the given object "in memory" and returns the result as an array of bytes.
|
public byte[] write(Object obj) throws Exception
obj - Exceptionpublic Object read() throws Exception
ExceptionCopyright © 2016. All rights reserved.