com.quiotix.html.parser
Class HtmlStripper
java.lang.Object
com.quiotix.html.parser.HtmlVisitor
com.quiotix.html.parser.HtmlDumper
com.quiotix.html.parser.HtmlStripper
public class HtmlStripper
- extends HtmlDumper
A runnable class intended to produce readable, sparse html from formatted
pages.
- Author:
- timp
| Fields inherited from class com.quiotix.html.parser.HtmlDumper |
out |
|
Constructor Summary |
HtmlStripper(java.io.OutputStream os)
|
HtmlStripper(java.io.OutputStream os,
java.lang.String encoding)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
html1BlockTags
protected static java.util.Set html1BlockTags
html1EmptyTags
protected static java.util.Set html1EmptyTags
html1Tags
protected static java.util.Set html1Tags
html1EmptyTagStrings
protected static java.lang.String[] html1EmptyTagStrings
html1BlockTagStrings
protected static java.lang.String[] html1BlockTagStrings
html4BlockTagStrings
protected static java.lang.String[] html4BlockTagStrings
HtmlStripper
public HtmlStripper(java.io.OutputStream os)
- Parameters:
os -
HtmlStripper
public HtmlStripper(java.io.OutputStream os,
java.lang.String encoding)
throws java.io.UnsupportedEncodingException
- Parameters:
os - encoding -
- Throws:
java.io.UnsupportedEncodingException
visit
public void visit(HtmlDocument.TagBlock tagBlock)
- Description copied from class:
HtmlVisitor
- Visit a TagBlock.
- Overrides:
visit in class HtmlVisitor
visit
public void visit(HtmlDocument.Tag t)
- Description copied from class:
HtmlVisitor
- Visit a Tag.
- Overrides:
visit in class HtmlDumper
visit
public void visit(HtmlDocument.Comment comment)
- Description copied from class:
HtmlVisitor
- Visit a Comment.
- Overrides:
visit in class HtmlDumper
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Runnable.
- Throws:
java.lang.Exception
Copyright © 1999-2008 Quiotix. All Rights Reserved.