|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.opencms.util.CmsHtmlExtractor
public final class CmsHtmlExtractor
Extracts plain text from HTML.
| Method Summary | |
|---|---|
static java.lang.String |
extractText(java.io.InputStream in,
java.lang.String encoding)
Extract the text from a HTML page. |
static java.lang.String |
extractText(java.lang.String content,
java.lang.String encoding)
Extract the text from a HTML page. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String extractText(java.io.InputStream in,
java.lang.String encoding)
throws org.htmlparser.util.ParserException,
java.io.UnsupportedEncodingException
in - the html content input streamencoding - the encoding of the content
org.htmlparser.util.ParserException - if the parsing of the HTML failed
java.io.UnsupportedEncodingException - if the given encoding is not supported
public static java.lang.String extractText(java.lang.String content,
java.lang.String encoding)
throws org.htmlparser.util.ParserException,
java.io.UnsupportedEncodingException
content - the html contentencoding - the encoding of the content
org.htmlparser.util.ParserException - if the parsing of the HTML failed
java.io.UnsupportedEncodingException - if the given encoding is not supported
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||