|
||||||||||
| 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(java.io.InputStream in)
Stores the contents of the given InputStream. |
| Method Detail |
|---|
Storage store(java.io.InputStream in)
throws java.io.IOException
InputStream.
in - stream containing the data to store.
Storage instance that can be used to retrieve the
stored content.
java.io.IOException - if an I/O error occurs.
StorageOutputStream createStorageOutputStream()
throws java.io.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.
java.io.IOException - if an I/O error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||