|
Apache JAMES Mime4j 0.6-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Storage
Can be used to read data that has been stored by a StorageProvider
.
Method Summary | |
---|---|
void |
delete()
Deletes the data held by this Storage as soon as possible. |
InputStream |
getInputStream()
Returns an InputStream that can be used to read the stored
data. |
Method Detail |
---|
InputStream getInputStream() throws IOException
InputStream
that can be used to read the stored
data. The input stream should be closed by the caller when it is no
longer needed.
Note: The stream should NOT be wrapped in a
BufferedInputStream
by the caller. If the implementing
Storage
creates a stream which would benefit from being
buffered it is the Storage
's responsibility to wrap it.
InputStream
for reading the stored data.
IOException
- if an I/O error occurs.
IllegalStateException
- if this Storage
instance has been deleted.void delete()
Storage
as soon as possible.
Deleting an already deleted Storage
has no effect.
|
Apache JAMES Mime4j 0.6-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |