class PartContentFactory
extends java.lang.Object
PartContent objects. There are different ways to store the content of a part
(backing file or backing array etc.). These different implementations should not be exposed to
the other layers of the code. The PartContentFactory helps maintain this abstraction, and
makes it easier to add new implementations.| Modifier and Type | Field and Description |
|---|---|
private static org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
PartContentFactory() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static PartContent |
createPartContent(LifecycleManager manager,
java.io.InputStream in,
boolean isRootPart,
int thresholdSize,
java.lang.String attachmentDir,
int messageContentLength)
Creates a
PartContent object from a given input stream. |
static PartContent createPartContent(LifecycleManager manager, java.io.InputStream in, boolean isRootPart, int thresholdSize, java.lang.String attachmentDir, int messageContentLength) throws OMException
PartContent object from a given input stream. The remaining parameters are
used to determine if the content should be stored in memory (byte buffers) or backed by a
file.manager - in - isRootPart - thresholdSize - attachmentDir - messageContentLength - OMException - if any exception is encountered while processing.