org.erowid.sperowider.htmlshredding
Class HTMLShmongler

java.lang.Object
  extended byorg.erowid.sperowider.htmlshredding.HTMLShmongler

public abstract class HTMLShmongler
extends Object

Takes an InputStreamReader and and fires off a series of events (the foundHTMLxxxx() methods) in the order of HTMLElements found.

Version:
$Header: /cvsroot/sperowider/SPEROWIDER_MODULE/javasource/org/erowid/sperowider/htmlshredding/HTMLShmongler.java,v 1.9 2005/04/21 04:05:55 gurustu Exp $
Author:
Stu Statman


Constructor Summary
HTMLShmongler()
          Creates a new Shmongler.
 
Method Summary
abstract  void foundEmbeddedScript(ScriptTag element)
          Called when the shmongler finds embedded scripts
abstract  void foundHTMLComment(HTMLComment element)
          Called when the shmongler finds a comment
abstract  void foundHTMLDocType(HTMLDocType element)
          Called when the shmongler finds an DocType entry
abstract  void foundHTMLKeywordTag(HTMLKeywordTag element)
          Called when the shmongler finds a keyword meta tag
abstract  void foundHTMLMetaTag(HTMLMetaTag element)
          Called when the shmongler finds a meta tag of any kind but meta
abstract  void foundHTMLTag(HTMLTag element)
          Called when the shmongler finds a HTML tag not handled by a more specific method
abstract  void foundHTMLText(HTMLText telement)
          Called when the shmongler finds HTML text
 Logger getLogger()
          Returns the logger associated with this Shmongler
 void shmongle(BufferedReader br)
          Takes an BufferedReader and cracks that into the contained collection of HTML elements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLShmongler

public HTMLShmongler()
Creates a new Shmongler.

Method Detail

getLogger

public Logger getLogger()
Returns the logger associated with this Shmongler


shmongle

public void shmongle(BufferedReader br)
Takes an BufferedReader and cracks that into the contained collection of HTML elements.


foundHTMLDocType

public abstract void foundHTMLDocType(HTMLDocType element)
Called when the shmongler finds an DocType entry


foundHTMLComment

public abstract void foundHTMLComment(HTMLComment element)
Called when the shmongler finds a comment


foundHTMLKeywordTag

public abstract void foundHTMLKeywordTag(HTMLKeywordTag element)
Called when the shmongler finds a keyword meta tag


foundHTMLMetaTag

public abstract void foundHTMLMetaTag(HTMLMetaTag element)
Called when the shmongler finds a meta tag of any kind but meta


foundHTMLTag

public abstract void foundHTMLTag(HTMLTag element)
Called when the shmongler finds a HTML tag not handled by a more specific method


foundHTMLText

public abstract void foundHTMLText(HTMLText telement)
Called when the shmongler finds HTML text


foundEmbeddedScript

public abstract void foundEmbeddedScript(ScriptTag element)
Called when the shmongler finds embedded scripts


spero logo small Sperowider is
© 2005 Erowid.org