Package org.jvnet.mimepull
Class MIMEConfig
- java.lang.Object
-
- org.jvnet.mimepull.MIMEConfig
-
public class MIMEConfig extends Object
Configuration for MIME message parsing and storing.- Author:
- Jitendra Kotamraju
-
-
Constructor Summary
Constructors Constructor Description MIMEConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetDir(String directory)voidsetMemoryThreshold(long memoryThreshold)If the attachment is greater than the threshold, it is written to the disk.voidsetParseEagerly(boolean parseEagerly)voidvalidate()Validates if it can create temporary files.
-
-
-
Method Detail
-
setParseEagerly
public void setParseEagerly(boolean parseEagerly)
-
setMemoryThreshold
public void setMemoryThreshold(long memoryThreshold)
If the attachment is greater than the threshold, it is written to the disk.- Parameters:
memoryThreshold- no of bytes per attachment if -1, then the whole attachment is kept in memory
-
setDir
public final void setDir(String directory)
- Parameters:
directory- temp directory
-
validate
public void validate()
Validates if it can create temporary files. Otherwise, it stores attachment contents in memory.
-
-