Class Html2Text
- java.lang.Object
-
- javax.swing.text.html.HTMLEditorKit.ParserCallback
-
- edu.cornell.mannlib.vitro.webapp.utils.Html2Text
-
public class Html2Text extends HTMLEditorKit.ParserCallback
-
-
Field Summary
-
Fields inherited from class javax.swing.text.html.HTMLEditorKit.ParserCallback
IMPLIED
-
-
Constructor Summary
Constructors Constructor Description Html2Text()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetText()voidhandleText(char[] text, int pos)voidparse(Reader in)voidparse(String in)StringstripHtml(String in)-
Methods inherited from class javax.swing.text.html.HTMLEditorKit.ParserCallback
flush, handleComment, handleEndOfLineString, handleEndTag, handleError, handleSimpleTag, handleStartTag
-
-
-
-
Method Detail
-
parse
public void parse(Reader in) throws IOException
- Throws:
IOException
-
parse
public void parse(String in) throws IOException
- Throws:
IOException
-
handleText
public void handleText(char[] text, int pos)- Overrides:
handleTextin classHTMLEditorKit.ParserCallback
-
getText
public String getText()
-
-