Package | Description |
---|---|
org.apache.james.mime4j.storage |
Modifier and Type | Class and Description |
---|---|
class |
AbstractStorageProvider
Abstract implementation of
StorageProvider that implements
store(InputStream) by copying the
input stream to a StorageOutputStream obtained from
createStorageOutputStream() . |
class |
CipherStorageProvider
A
StorageProvider that transparently scrambles and unscrambles the
data stored by another StorageProvider . |
class |
MemoryStorageProvider
A
StorageProvider that stores the data entirely in memory. |
class |
TempFileStorageProvider
A
StorageProvider that stores the data in temporary files. |
class |
ThresholdStorageProvider
A
StorageProvider that keeps small amounts of data in memory and
writes the remainder to another StorageProvider (the back-end)
if a certain threshold size gets exceeded. |
Modifier and Type | Method and Description |
---|---|
static StorageProvider |
DefaultStorageProvider.getInstance()
Returns the default
StorageProvider instance. |
StorageProvider |
StorageBodyFactory.getStorageProvider()
Returns the
StorageProvider this BodyFactory
uses to create message bodies from input streams. |
Modifier and Type | Method and Description |
---|---|
static void |
DefaultStorageProvider.setInstance(StorageProvider instance)
Sets the default
StorageProvider instance. |
Constructor and Description |
---|
CipherStorageProvider(StorageProvider backend)
Creates a new
CipherStorageProvider for the given back-end
using the Blowfish cipher algorithm. |
CipherStorageProvider(StorageProvider backend,
String algorithm)
Creates a new
CipherStorageProvider for the given back-end
and cipher algorithm. |
StorageBodyFactory(StorageProvider storageProvider,
DecodeMonitor monitor)
Creates a new
BodyFactory instance that uses the given
storage provider for creating message bodies from input streams. |
ThresholdStorageProvider(StorageProvider backend)
Creates a new
ThresholdStorageProvider for the given
back-end using a threshold size of 2048 bytes. |
ThresholdStorageProvider(StorageProvider backend,
int thresholdSize)
Creates a new
ThresholdStorageProvider for the given
back-end and threshold size. |
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.