|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.james.mime4j.storage.AbstractStorageProvider
public abstract class AbstractStorageProvider
Abstract implementation of StorageProvider
that implements
store(InputStream)
by copying the
input stream to a StorageOutputStream
obtained from
createStorageOutputStream()
.
Constructor Summary | |
---|---|
protected |
AbstractStorageProvider()
Sole constructor. |
Method Summary | |
---|---|
Storage |
store(java.io.InputStream in)
This implementation creates a StorageOutputStream by calling
createStorageOutputStream()
and copies the content of the given input stream to that output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.james.mime4j.storage.StorageProvider |
---|
createStorageOutputStream |
Constructor Detail |
---|
protected AbstractStorageProvider()
Method Detail |
---|
public final Storage store(java.io.InputStream in) throws java.io.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.
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 |