|
|||||||||
| 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
sophware.home.io.FileHomeStorage
public class FileHomeStorage
The FileHomeStorage is a persistent implementation
of the HomeStorage interface.
| Constructor Summary | |
|---|---|
FileHomeStorage(java.io.File storage)
Constructs FileHomeStorage |
|
| Method Summary | |
|---|---|
void |
close()
Closes the resources associate with this storage |
java.io.ObjectInputStream |
getInputStream()
Get the ObjectInputStream from which the HomeStorage is initialized |
java.io.ObjectOutputStream |
getOutputStream()
Get the ObjectOutputStream to which the HomeStorage is saved |
| Methods inherited from class sophware.home.io.PersistentHomeStorage |
|---|
flush, open |
| 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 FileHomeStorage(java.io.File storage)
FileHomeStorage
storage - the file used to store objects| Method Detail |
|---|
public java.io.ObjectInputStream getInputStream()
throws java.io.IOException
PersistentHomeStorage
getInputStream in class PersistentHomeStoragejava.io.IOException
public java.io.ObjectOutputStream getOutputStream()
throws java.io.IOException
PersistentHomeStorage
getOutputStream in class PersistentHomeStoragejava.io.IOException
public void close()
throws java.io.IOException
close in interface HomeStorageclose in class PersistentHomeStoragejava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||