|
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 StorageProvider
Provides a strategy for storing the contents of an InputStream
or retrieving the content written to an OutputStream
.
Method Summary | |
---|---|
StorageOutputStream |
createStorageOutputStream()
Creates a StorageOutputStream where data to be stored can be
written to. |
Storage |
store(InputStream in)
Stores the contents of the given InputStream . |
Method Detail |
---|
Storage store(InputStream in) throws IOException
InputStream
.
in
- stream containing the data to store.
Storage
instance that can be used to retrieve the
stored content.
IOException
- if an I/O error occurs.StorageOutputStream createStorageOutputStream() throws IOException
StorageOutputStream
where data to be stored can be
written to. Subsequently the user can call
toStorage()
on that object to get
a Storage
instance that holds the data that has been written.
StorageOutputStream
where data can be written to.
IOException
- if an I/O error occurs.
|
Apache JAMES Mime4j 0.6-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |