|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.swing.text.html.HTMLEditorKit.ParserCallback
org.jasen.core.parsers.StandardHTMLParser
Parses the HTML part of an email for two main purposes.
| Field Summary |
| Fields inherited from class javax.swing.text.html.HTMLEditorKit.ParserCallback |
IMPLIED |
| Constructor Summary | |
StandardHTMLParser()
|
|
| Method Summary | |
String |
extractText(InputStream in)
Extracts plain text from the html given by the input stream and returns it as a String |
void |
extractText(InputStream in,
OutputStream out)
Extracts the plain text components of the html given by the input stream and writes this plain text to the given output stream |
String |
extractText(String html)
Extracts plain text from the given html String and returns it as a String |
void |
handleComment(char[] text,
int pos)
|
void |
handleEndTag(HTML.Tag t,
int pos)
|
void |
handleSimpleTag(HTML.Tag t,
MutableAttributeSet a,
int pos)
|
void |
handleStartTag(HTML.Tag t,
MutableAttributeSet a,
int pos)
|
void |
handleText(char[] text,
int pos)
|
ParserData |
parse(javax.mail.internet.MimeMessage mm,
JasenMessage message,
MimeMessageTokenizer tokenizer)
Parses the given JasenMessage and returns the results of the parse as a ParserData object. |
void |
setEncoding(String encoding)
Sets the encoding to use on the output stream (optional) |
| Methods inherited from class javax.swing.text.html.HTMLEditorKit.ParserCallback |
flush, handleEndOfLineString, handleError |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StandardHTMLParser()
| Method Detail |
public void extractText(InputStream in,
OutputStream out)
throws JasenException
in - The input stream from which the html is readout - The ouput stream to which the plain text is written
JasenExceptionpublic void setEncoding(String encoding)
encoding -
public String extractText(InputStream in)
throws JasenException
in - The input stream from which the html is read
JasenException
public String extractText(String html)
throws JasenException
html - The String containing the html
JasenException
public void handleComment(char[] text,
int pos)
public void handleEndTag(HTML.Tag t,
int pos)
public void handleSimpleTag(HTML.Tag t,
MutableAttributeSet a,
int pos)
public void handleStartTag(HTML.Tag t,
MutableAttributeSet a,
int pos)
public void handleText(char[] text,
int pos)
public ParserData parse(javax.mail.internet.MimeMessage mm,
JasenMessage message,
MimeMessageTokenizer tokenizer)
throws JasenException
HTMLParser
parse in interface HTMLParsermessage -
JasenException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||