|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Streamable
Every implementation must provide a constructor without parameters. Cache should be able to populate the object using restore method.
Method Summary | |
---|---|
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. |
Method Detail |
---|
void write(java.io.OutputStream outputStream) throws StorageException
outputStream
- OutputStream that holds value of a Streamable object
StorageException
void 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
method
StorageException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |