public abstract class StreamingStorage extends Object
Constructor and Description |
---|
StreamingStorage() |
Modifier and Type | Method and Description |
---|---|
abstract OutputStream |
createAppendStream()
Creates an output stream to append new content to the storage.
|
abstract InputStream |
createInputStream()
Creates an input stream to read storage content.
|
abstract OutputStream |
createOutputStream()
Creates an output stream to replace the storage with new content.
|
abstract boolean |
delete()
Deletes the storage.
|
abstract boolean |
exists()
Determines whether the storage already exists.
|
abstract Date |
getCreationDate()
Returns the creation date of the storage.
|
public abstract boolean exists()
public abstract Date getCreationDate() throws IOException
IOException
- if the creation date cannot be determined.public abstract InputStream createInputStream() throws IOException, TrsStoreCorruptedException
IOException
- if the storage cannot be read.TrsStoreCorruptedException
- if the storage is corrupted.public abstract OutputStream createOutputStream() throws IOException
IOException
- if the storage cannot be written.public abstract OutputStream createAppendStream() throws IOException
IOException
- if the storage cannot be written.public abstract boolean delete()
true
if the storage was successfully deleted; false
otherwise.