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(InputStream in)
Stores the contents of the given
InputStream. |
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.Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.