Class Html2Text
- java.lang.Object
-
- javax.swing.text.html.HTMLEditorKit.ParserCallback
-
- org.silverpeas.components.mailinglist.service.util.Html2Text
-
- All Implemented Interfaces:
HtmlCleaner
@Alternative @Technical @Bean public class Html2Text extends HTMLEditorKit.ParserCallback implements HtmlCleaner
Deprecated.useNekoHtmlCleanerinsteadHTML parser, used to extract text form the HTML.- Author:
- Emmanuel Hugonnet
-
-
Field Summary
-
Fields inherited from class javax.swing.text.html.HTMLEditorKit.ParserCallback
IMPLIED
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetSummary()Deprecated.voidhandleComment(char[] data, int pos)Deprecated.voidhandleEndOfLineString(String eol)Deprecated.voidhandleEndTag(HTML.Tag t, int pos)Deprecated.voidhandleError(String errorMsg, int pos)Deprecated.voidhandleSimpleTag(HTML.Tag t, MutableAttributeSet a, int pos)Deprecated.voidhandleStartTag(HTML.Tag t, MutableAttributeSet a, int pos)Deprecated.voidhandleText(char[] text, int pos)Deprecated.voidparse(Reader in)Deprecated.voidsetSummarySize(int maxSize)Deprecated.-
Methods inherited from class javax.swing.text.html.HTMLEditorKit.ParserCallback
flush
-
-
-
-
Method Detail
-
setSummarySize
public void setSummarySize(int maxSize)
Deprecated.- Specified by:
setSummarySizein interfaceHtmlCleaner
-
handleStartTag
public void handleStartTag(HTML.Tag t, MutableAttributeSet a, int pos)
Deprecated.- Overrides:
handleStartTagin classHTMLEditorKit.ParserCallback
-
handleError
public void handleError(String errorMsg, int pos)
Deprecated.- Overrides:
handleErrorin classHTMLEditorKit.ParserCallback
-
handleEndTag
public void handleEndTag(HTML.Tag t, int pos)
Deprecated.- Overrides:
handleEndTagin classHTMLEditorKit.ParserCallback
-
parse
public void parse(Reader in) throws IOException
Deprecated.- Specified by:
parsein interfaceHtmlCleaner- Throws:
IOException
-
handleText
public void handleText(char[] text, int pos)Deprecated.- Overrides:
handleTextin classHTMLEditorKit.ParserCallback
-
handleEndOfLineString
public void handleEndOfLineString(String eol)
Deprecated.- Overrides:
handleEndOfLineStringin classHTMLEditorKit.ParserCallback
-
handleComment
public void handleComment(char[] data, int pos)Deprecated.- Overrides:
handleCommentin classHTMLEditorKit.ParserCallback
-
handleSimpleTag
public void handleSimpleTag(HTML.Tag t, MutableAttributeSet a, int pos)
Deprecated.- Overrides:
handleSimpleTagin classHTMLEditorKit.ParserCallback
-
getSummary
public String getSummary()
Deprecated.- Specified by:
getSummaryin interfaceHtmlCleaner
-
-