Package nl.vpro.util
Class HTMLStripper.TagStripper
- java.lang.Object
-
- javax.swing.text.html.HTMLEditorKit.ParserCallback
-
- nl.vpro.util.HTMLStripper.TagStripper
-
- Enclosing class:
- HTMLStripper
protected class HTMLStripper.TagStripper extends HTMLEditorKit.ParserCallback
-
-
Field Summary
-
Fields inherited from class javax.swing.text.html.HTMLEditorKit.ParserCallback
IMPLIED
-
-
Constructor Summary
Constructors Constructor Description TagStripper(Writer out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
flush()
void
handleComment(char[] data, int pos)
void
handleEndOfLineString(String eol)
void
handleEndTag(HTML.Tag tag, int position)
void
handleError(String mes, int position)
void
handleSimpleTag(HTML.Tag tag, MutableAttributeSet attributes, int position)
void
handleStartTag(HTML.Tag tag, MutableAttributeSet attributes, int position)
void
handleText(char[] text, int position)
protected void
space()
-
-
-
Constructor Detail
-
TagStripper
public TagStripper(Writer out)
-
-
Method Detail
-
handleText
public void handleText(char[] text, int position)
- Overrides:
handleText
in classHTMLEditorKit.ParserCallback
-
space
protected void space() throws IOException
- Throws:
IOException
-
handleStartTag
public void handleStartTag(HTML.Tag tag, MutableAttributeSet attributes, int position)
- Overrides:
handleStartTag
in classHTMLEditorKit.ParserCallback
-
handleEndTag
public void handleEndTag(HTML.Tag tag, int position)
- Overrides:
handleEndTag
in classHTMLEditorKit.ParserCallback
-
handleSimpleTag
public void handleSimpleTag(HTML.Tag tag, MutableAttributeSet attributes, int position)
- Overrides:
handleSimpleTag
in classHTMLEditorKit.ParserCallback
-
handleError
public void handleError(String mes, int position)
- Overrides:
handleError
in classHTMLEditorKit.ParserCallback
-
handleComment
public void handleComment(char[] data, int pos)
- Overrides:
handleComment
in classHTMLEditorKit.ParserCallback
-
handleEndOfLineString
public void handleEndOfLineString(String eol)
- Overrides:
handleEndOfLineString
in classHTMLEditorKit.ParserCallback
-
flush
public void flush()
- Overrides:
flush
in classHTMLEditorKit.ParserCallback
-
-