public abstract class AbstractStorageProvider extends Object implements StorageProvider
StorageProvider
that implements
store(InputStream)
by copying the
input stream to a StorageOutputStream
obtained from
createStorageOutputStream()
.Modifier | Constructor and Description |
---|---|
protected |
AbstractStorageProvider()
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
Storage |
store(InputStream in)
This implementation creates a
StorageOutputStream by calling
createStorageOutputStream()
and copies the content of the given input stream to that output stream. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createStorageOutputStream
public final Storage store(InputStream in) throws IOException
StorageOutputStream
by calling
createStorageOutputStream()
and copies the content of the given input stream to that output stream.
It then calls StorageOutputStream.toStorage()
on the output
stream and returns this object.store
in interface StorageProvider
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.Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.