|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.swing.text.html.HTMLEditorKit.ParserCallback
de.fh_mannheim.mm.dms.framework.converters.HTML2Text
FileConverter is a html parser, which converts html to plaintext.
| Field Summary | |
static java.lang.String[] |
HTML_CHARS
|
static java.lang.String[] |
TEXT_CHARS
Chars to convert from HTML to text |
| Fields inherited from class javax.swing.text.html.HTMLEditorKit.ParserCallback |
IMPLIED |
| Constructor Summary | |
HTML2Text()
Constructor. |
|
| Method Summary | |
static java.lang.StringBuffer |
convertChars(java.lang.StringBuffer strText)
Returns plaintext without specialcharcodes. |
void |
handleText(char[] text,
int pos)
Append found text. |
java.lang.StringBuffer |
parse(java.lang.String strFilename)
Parse html-file. |
static java.lang.String |
removeTags(java.lang.String strText)
Removes all tags in html. |
static java.lang.StringBuffer |
removeTags(java.lang.StringBuffer strText)
Removes all tags in html. |
| Methods inherited from class javax.swing.text.html.HTMLEditorKit.ParserCallback |
flush, handleComment, handleEndOfLineString, handleEndTag, handleError, handleSimpleTag, handleStartTag |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String[] TEXT_CHARS
public static final java.lang.String[] HTML_CHARS
| Constructor Detail |
public HTML2Text()
| Method Detail |
public static java.lang.StringBuffer convertChars(java.lang.StringBuffer strText)
strText - Text to convert
public void handleText(char[] text,
int pos)
text - Found textpos - Position of found textpublic java.lang.StringBuffer parse(java.lang.String strFilename)
strFilename - HTML-file
public static java.lang.String removeTags(java.lang.String strText)
strText - Text to be cleared
public static java.lang.StringBuffer removeTags(java.lang.StringBuffer strText)
strText - Text to be cleared
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||