org.apache.mahout.utils.email
Class MailOptions

java.lang.Object
  extended by org.apache.mahout.utils.email.MailOptions

public class MailOptions
extends Object


Field Summary
static Pattern DEFAULT_QUOTED_TEXT
           
static String FROM
           
static String REFS
           
static String SUBJECT
           
static String TO
           
 
Constructor Summary
MailOptions()
           
 
Method Summary
 String getBodySeparator()
           
 Charset getCharset()
           
 int getChunkSize()
           
 File getInput()
           
 String getOutputDir()
           
 Map<String,Integer> getPatternOrder()
           
 Pattern[] getPatternsToMatch()
           
 String getPrefix()
           
 Pattern getQuotedTextPattern()
           
 String getSeparator()
           
 boolean isIncludeBody()
           
 boolean isStripQuotedText()
           
 void setBodySeparator(String bodySeparator)
           
 void setCharset(Charset charset)
           
 void setChunkSize(int chunkSize)
           
 void setIncludeBody(boolean includeBody)
           
 void setInput(File input)
           
 void setOutputDir(String outputDir)
           
 void setPatternOrder(Map<String,Integer> patternOrder)
           
 void setPatternsToMatch(Pattern[] patternsToMatch)
           
 void setPrefix(String prefix)
           
 void setQuotedTextPattern(Pattern quotedTextPattern)
           
 void setSeparator(String separator)
           
 void setStripQuotedText(boolean stripQuotedText)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FROM

public static final String FROM
See Also:
Constant Field Values

TO

public static final String TO
See Also:
Constant Field Values

REFS

public static final String REFS
See Also:
Constant Field Values

SUBJECT

public static final String SUBJECT
See Also:
Constant Field Values

DEFAULT_QUOTED_TEXT

public static final Pattern DEFAULT_QUOTED_TEXT
Constructor Detail

MailOptions

public MailOptions()
Method Detail

getInput

public File getInput()

setInput

public void setInput(File input)

getOutputDir

public String getOutputDir()

setOutputDir

public void setOutputDir(String outputDir)

getPrefix

public String getPrefix()

setPrefix

public void setPrefix(String prefix)

getChunkSize

public int getChunkSize()

setChunkSize

public void setChunkSize(int chunkSize)

getCharset

public Charset getCharset()

setCharset

public void setCharset(Charset charset)

getSeparator

public String getSeparator()

setSeparator

public void setSeparator(String separator)

getBodySeparator

public String getBodySeparator()

setBodySeparator

public void setBodySeparator(String bodySeparator)

isIncludeBody

public boolean isIncludeBody()

setIncludeBody

public void setIncludeBody(boolean includeBody)

getPatternsToMatch

public Pattern[] getPatternsToMatch()

setPatternsToMatch

public void setPatternsToMatch(Pattern[] patternsToMatch)

getPatternOrder

public Map<String,Integer> getPatternOrder()

setPatternOrder

public void setPatternOrder(Map<String,Integer> patternOrder)

isStripQuotedText

public boolean isStripQuotedText()
Returns:
true if we should strip out quoted email text

setStripQuotedText

public void setStripQuotedText(boolean stripQuotedText)
Parameters:
stripQuotedText - if true, then strip off quoted text, such as lines starting with | or >

getQuotedTextPattern

public Pattern getQuotedTextPattern()

setQuotedTextPattern

public void setQuotedTextPattern(Pattern quotedTextPattern)
Parameters:
quotedTextPattern - The Pattern to use to identify lines that are quoted text. Default is | and >
See Also:
setStripQuotedText(boolean)


Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.