public interface Streamable
| Modifier and Type | Method and Description |
|---|---|
void |
read(java.io.InputStream inputStream)
Restore state of the Storable object from the stream.
|
void |
write(java.io.OutputStream outputStream)
This method will be used to move changed object from storage cache
to the persistent part of storage.
|
void write(java.io.OutputStream outputStream)
throws StorageException
outputStream - OutputStream that holds value of a Streamable objectStorageExceptionvoid read(java.io.InputStream inputStream)
throws StorageException
inputStream - InputStream that represents an internal representation of fields of a Streamable object
in which it was written by write methodStorageExceptionCopyright © 2005-2012 Apache Software Foundation. All Rights Reserved.