| |
|
| java.lang.Object org.jvnet.mimepull.MIMEConfig
MIMEConfig | public class MIMEConfig (Code) | | Configuration for MIME message parsing and storing.
author: Jitendra Kotamraju |
memoryThreshold | long memoryThreshold(Code) | | |
onlyMemory | boolean onlyMemory(Code) | | |
parseEagerly | boolean parseEagerly(Code) | | |
MIMEConfig | public MIMEConfig()(Code) | | |
getChunkSize | int getChunkSize()(Code) | | |
getMemoryThreshold | long getMemoryThreshold()(Code) | | |
isOnlyMemory | boolean isOnlyMemory()(Code) | | |
isParseEagerly | boolean isParseEagerly()(Code) | | |
setChunkSize | void setChunkSize(int chunkSize)(Code) | | |
setMemoryThreshold | public void setMemoryThreshold(long memoryThreshold)(Code) | | If the attachment is greater than the threshold, it is
written to the disk.
Parameters: memoryThreshold - no of bytes per attachmentif -1, then the whole attachment is kept in memory |
setParseEagerly | public void setParseEagerly(boolean parseEagerly)(Code) | | |
validate | public void validate()(Code) | | Validates if it can create temporary files. Otherwise, it stores
attachment contents in memory.
|
|
|
|