com.quiotix.html.parser
Class HtmlDumper

java.lang.Object
  extended by com.quiotix.html.parser.HtmlVisitor
      extended by com.quiotix.html.parser.HtmlDumper
Direct Known Subclasses:
HtmlStripper

public class HtmlDumper
extends HtmlVisitor

Simple HtmlVisitor which dumps out the document to the specified output stream.

Author:
Brian Goetz, Quiotix

Field Summary
protected  PrintWriter out
           
 
Constructor Summary
HtmlDumper(OutputStream os)
          Constructor.
HtmlDumper(OutputStream os, String encoding)
          Constructor.
 
Method Summary
 void finish()
          Finish.
 void visit(HtmlDocument.Annotation a)
          Visit an Annotation.
 void visit(HtmlDocument.Comment c)
          Visit a Comment.
 void visit(HtmlDocument.EndTag t)
          Visit an EndTag.
 void visit(HtmlDocument.Newline n)
          Visit a Newline.
 void visit(HtmlDocument.Tag t)
          Visit a Tag.
 void visit(HtmlDocument.Text t)
          Visit Text.
 
Methods inherited from class com.quiotix.html.parser.HtmlVisitor
start, visit, visit, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

protected PrintWriter out
Constructor Detail

HtmlDumper

public HtmlDumper(OutputStream os)
Constructor.


HtmlDumper

public HtmlDumper(OutputStream os,
                  String encoding)
           throws UnsupportedEncodingException
Constructor.

Throws:
UnsupportedEncodingException
Method Detail

finish

public void finish()
Description copied from class: HtmlVisitor
Finish.

Overrides:
finish in class HtmlVisitor

visit

public void visit(HtmlDocument.Tag t)
Description copied from class: HtmlVisitor
Visit a Tag.

Overrides:
visit in class HtmlVisitor

visit

public void visit(HtmlDocument.EndTag t)
Description copied from class: HtmlVisitor
Visit an EndTag.

Overrides:
visit in class HtmlVisitor

visit

public void visit(HtmlDocument.Comment c)
Description copied from class: HtmlVisitor
Visit a Comment.

Overrides:
visit in class HtmlVisitor

visit

public void visit(HtmlDocument.Text t)
Description copied from class: HtmlVisitor
Visit Text.

Overrides:
visit in class HtmlVisitor

visit

public void visit(HtmlDocument.Newline n)
Description copied from class: HtmlVisitor
Visit a Newline.

Overrides:
visit in class HtmlVisitor

visit

public void visit(HtmlDocument.Annotation a)
Description copied from class: HtmlVisitor
Visit an Annotation.

Overrides:
visit in class HtmlVisitor


Copyright © 1999-2011 Quiotix. All Rights Reserved.