com.quiotix.html.parser
Class HtmlDebugDumper

java.lang.Object
  extended by com.quiotix.html.parser.HtmlVisitor
      extended by com.quiotix.html.parser.HtmlDebugDumper

public class HtmlDebugDumper
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
HtmlDebugDumper(OutputStream os)
          Constructor.
 
Method Summary
 void finish()
          Finish.
static void main(String[] args)
          Runnable.
 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.TagBlock bl)
          Visit a TagBlock.
 void visit(HtmlDocument.Text t)
          Visit Text.
 
Methods inherited from class com.quiotix.html.parser.HtmlVisitor
start, 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

HtmlDebugDumper

public HtmlDebugDumper(OutputStream os)
Constructor.

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

visit

public void visit(HtmlDocument.TagBlock bl)
Description copied from class: HtmlVisitor
Visit a TagBlock.

Overrides:
visit in class HtmlVisitor

main

public static void main(String[] args)
                 throws ParseException
Runnable.

Throws:
ParseException


Copyright © 1999-2011 Quiotix. All Rights Reserved.