org.jvnet.mimepull
Class MIMEConfig

java.lang.Object
  extended by org.jvnet.mimepull.MIMEConfig

public class MIMEConfig
extends java.lang.Object

Configuration for MIME message parsing and storing.

Author:
Jitendra Kotamraju

Constructor Summary
MIMEConfig()
           
 
Method Summary
 void setDir(java.lang.String dir)
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MIMEConfig

public MIMEConfig()
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 void setDir(java.lang.String dir)
Parameters:
dir -

validate

public void validate()
Validates if it can create temporary files. Otherwise, it stores attachment contents in memory.



Copyright © {inceptionYear}-2009 Sun Microsystems Inc. All Rights Reserved.