public class MIMEConfig extends Object
Constructor and Description |
---|
MIMEConfig() |
Modifier and Type | Method and Description |
---|---|
void |
setDir(String directory) |
void |
setMemoryThreshold(long memoryThreshold)
If the attachment is greater than the threshold, it is
written to the disk.
|
void |
setParseEagerly(boolean parseEagerly) |
void |
validate()
Validates if it can create temporary files.
|
public void setParseEagerly(boolean parseEagerly)
public void setMemoryThreshold(long memoryThreshold)
memoryThreshold
- no of bytes per attachment
if -1, then the whole attachment is kept in memorypublic final void setDir(String directory)
directory
- temp directorypublic void validate()
Copyright © 2019 Oracle Corporation. All rights reserved.