|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsophware.home.io.MemoryHomeStorage
sophware.home.io.PersistentHomeStorage
public abstract class PersistentHomeStorage
The PersistentHomeStorage is an abstract class that provides
a foundation for the implementation of persistent HomeStorage
| Constructor Summary | |
|---|---|
PersistentHomeStorage()
|
|
| Method Summary | |
|---|---|
void |
close()
flushes and closes the streams associated with this storage |
void |
flush()
flush this data store to the ObjectOutputStream |
abstract java.io.ObjectInputStream |
getInputStream()
Get the ObjectInputStream from which the HomeStorage is initialized |
abstract java.io.ObjectOutputStream |
getOutputStream()
Get the ObjectOutputStream to which the HomeStorage is saved |
void |
open()
Initializes storage from stream |
| Methods inherited from class sophware.home.io.MemoryHomeStorage |
|---|
add, contains, get, get, getAll, getAll, remove |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PersistentHomeStorage()
| Method Detail |
|---|
public void open()
throws java.io.IOException,
java.lang.ClassNotFoundException
open in interface HomeStorageopen in class MemoryHomeStoragejava.io.IOException
java.lang.ClassNotFoundExceptiongetInputStream()
public abstract java.io.ObjectInputStream getInputStream()
throws java.io.IOException
java.io.IOException
public abstract java.io.ObjectOutputStream getOutputStream()
throws java.io.IOException
java.io.IOException
public void flush()
throws java.io.IOException
flush in interface HomeStorageflush in class MemoryHomeStoragejava.io.IOExceptiongetOutputStream()
public void close()
throws java.io.IOException
close in interface HomeStorageclose in class MemoryHomeStoragejava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||