|
||||||||
| 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 String |
extractText(InputStream in,
String encoding)
Extract the text from a HTML page. |
static String |
extractText(String content,
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 String extractText(InputStream in,
String encoding)
throws org.htmlparser.util.ParserException,
UnsupportedEncodingException
in - the html content input streamencoding - the encoding of the content
org.htmlparser.util.ParserException - if the parsing of the HTML failed
UnsupportedEncodingException - if the given encoding is not supported
public static String extractText(String content,
String encoding)
throws org.htmlparser.util.ParserException,
UnsupportedEncodingException
content - the html contentencoding - the encoding of the content
org.htmlparser.util.ParserException - if the parsing of the HTML failed
UnsupportedEncodingException - if the given encoding is not supported
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||