|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ObjectSerializer
A ObjectSerializer is used to serialize and deserialize in-memory
objects out to byte streams. Several implementations exist in this package.
PersistenceStore| Method Summary | |
|---|---|
java.lang.Object |
deserialize(java.io.InputStream inputStream)
Deserializes the contents of a byte stream and produce an in-memory object. |
void |
serialize(java.lang.Object object,
java.io.OutputStream outputStream)
Serializes an in-memory object to a byte stream. |
| Method Detail |
|---|
void serialize(java.lang.Object object,
java.io.OutputStream outputStream)
throws java.io.IOException,
java.lang.InterruptedException
OutputStream - it is the caller's
responsibility to close it.
object - the in-memory object to serialize (must not be null)outputStream - the output stream to serialize to (must not be null)
java.io.IOException
java.lang.InterruptedException
java.lang.Object deserialize(java.io.InputStream inputStream)
throws java.io.IOException,
java.lang.InterruptedException
InputStream -
it is the caller's responsibility to close it.
inputStream - the input stream to deserialize (must not be null)
java.io.IOException
java.lang.InterruptedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||