org.jasen.interfaces
Interface ParserData

All Known Implementing Classes:
StandardParserData

public interface ParserData

Holds the information obtained from parsing and tokenizing the message.

Author:
Jason Polites

Method Summary
 String getHtmlAsText()
          Gets the HTML part of the message as plain text
 String[] getMessageTokens()
          Gets the single (word) tokens extracted from the message
 String getTextParsed()
          Gets the text part of the message as "clean" text
 TokenErrorRecorder getTokenErrorRecorder()
          Gets the recorder used to record errors or anomalies found while tokenizing during a parse
 

Method Detail

getMessageTokens

public String[] getMessageTokens()
Gets the single (word) tokens extracted from the message

Returns:
The tokens in the message as a String array

getHtmlAsText

public String getHtmlAsText()
Gets the HTML part of the message as plain text

Returns:
The HTML part of the message as plain text

getTextParsed

public String getTextParsed()
Gets the text part of the message as "clean" text

Returns:

getTokenErrorRecorder

public TokenErrorRecorder getTokenErrorRecorder()
Gets the recorder used to record errors or anomalies found while tokenizing during a parse

Returns:
The current token recorder