org.jasen.interfaces
Interface MimeMessageTokenizer

All Known Implementing Classes:
EmailTokenizer

public interface MimeMessageTokenizer

Reduces a MimeMessage to a single set of meaningful tokens (words).

Author:
Jason Polites

Method Summary
 void setTokenLimit(int limit)
          Sets the max number of tokens to extract from a message
 String[] tokenize(javax.mail.internet.MimeMessage mm, JasenMessage message, ParserData data)
          Tokenizes the given message into meaningful string tokens
 

Method Detail

tokenize

public String[] tokenize(javax.mail.internet.MimeMessage mm,
                         JasenMessage message,
                         ParserData data)
                  throws JasenException
Tokenizes the given message into meaningful string tokens

Parameters:
mm -
message -
Returns:
The reduced message tokens
Throws:
JasenException

setTokenLimit

public void setTokenLimit(int limit)
Sets the max number of tokens to extract from a message

Parameters:
limit -