Class Spider.SpiderParserCallback

java.lang.Object
  extended byjavax.swing.text.html.HTMLEditorKit.ParserCallback
      extended bySpider.SpiderParserCallback
Enclosing class:
Spider

public class Spider.SpiderParserCallback
extends javax.swing.text.html.HTMLEditorKit.ParserCallback

Inner class used to html handle parser callbacks


Field Summary
 
Fields inherited from class javax.swing.text.html.HTMLEditorKit.ParserCallback
IMPLIED
 
Constructor Summary
Spider.SpiderParserCallback(javax.swing.tree.DefaultMutableTreeNode atreenode)
          Creates a new instance of SpiderParserCallback
 
Method Summary
 void handleEndTag(javax.swing.text.html.HTML.Tag t, int pos)
          take care of start tags
 void handleSimpleTag(javax.swing.text.html.HTML.Tag t, javax.swing.text.MutableAttributeSet a, int pos)
          handle HTML tags that don't have a start and end tag
 void handleStartTag(javax.swing.text.html.HTML.Tag t, javax.swing.text.MutableAttributeSet a, int pos)
          take care of start tags
 void handleText(char[] data, int pos)
          take care of text between tags, check against keyword list for matches, if match found, set the node match status to true
 
Methods inherited from class javax.swing.text.html.HTMLEditorKit.ParserCallback
flush, handleComment, handleEndOfLineString, handleError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Spider.SpiderParserCallback

public Spider.SpiderParserCallback(javax.swing.tree.DefaultMutableTreeNode atreenode)
Creates a new instance of SpiderParserCallback

Parameters:
atreenode - search tree node that is being parsed
Method Detail

handleSimpleTag

public void handleSimpleTag(javax.swing.text.html.HTML.Tag t,
                            javax.swing.text.MutableAttributeSet a,
                            int pos)
handle HTML tags that don't have a start and end tag

Parameters:
t - HTML tag
a - HTML attributes
pos - Position within file

handleStartTag

public void handleStartTag(javax.swing.text.html.HTML.Tag t,
                           javax.swing.text.MutableAttributeSet a,
                           int pos)
take care of start tags

Parameters:
t - HTML tag
a - HTML attributes
pos - Position within file

handleEndTag

public void handleEndTag(javax.swing.text.html.HTML.Tag t,
                         int pos)
take care of start tags

Parameters:
t - HTML tag
pos - Position within file

handleText

public void handleText(char[] data,
                       int pos)
take care of text between tags, check against keyword list for matches, if match found, set the node match status to true

Parameters:
data - Text between tags
pos - position of text within web page