|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BackupRepository
Provides an interface for backing up objects. write
and read
allow writing and reading of the current version of the object. backup
backs up the object, and restore
restores it from a previously backed up
version, if any. There is no way to directly use the backup.
Method Summary | |
---|---|
boolean |
backup()
Backs up the current version of the object, overwriting a previous backup, if any. |
InputStream |
read()
Reads the input stream from the current object. |
boolean |
restore()
Restores a previously backuped version of the object. |
void |
write(InputStream data)
Writes the input stream to the current object. |
Method Detail |
---|
void write(InputStream data) throws IOException
data
- The data to be written. Remember to close this stream, if necessary.
IOException
- Will be thrown when (a) the input stream gets closed
unexpectedly, or (b) there is an error writing the data.InputStream read() throws IOException
IOException
- Will be thrown when there is a problem storing the data.boolean restore() throws IOException
IOException
- Thrown when the restore process goes bad.boolean backup() throws IOException
IOException
- Thrown when the restore process goes bad.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |