public interface StorageProvider
InputStream
or retrieving the content written to an OutputStream.| Modifier and Type | Method and Description |
|---|---|
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. |
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.