idl.tmt.documentparsing
Interface HTMLParsingListener

All Superinterfaces:
ParsingListener
All Known Implementing Classes:
BodyTextRepresentationBuilder, H1TextRepresentationBuilder, HTMLMetricsClassifier, MetaTextRepresentationBuilder, TitleTextRepresentationBuilder, TitleSaver

public interface HTMLParsingListener
extends ParsingListener

Provides notification methods for parsing HTML. Created on Jan 23, 2004

Author:
jelsas

Method Summary
 void endTag(javax.swing.text.html.HTML.Tag tag, int pos)
          Indicates that an HTML end tag has been reached
 void startTag(javax.swing.text.html.HTML.Tag tag, javax.swing.text.MutableAttributeSet atts, int pos)
          Indicates that a new HTML start tag has been entered.
 
Methods inherited from interface idl.tmt.documentparsing.ParsingListener
documentCollectionComplete, documentComplete, newDocument
 

Method Detail

startTag

public void startTag(javax.swing.text.html.HTML.Tag tag,
                     javax.swing.text.MutableAttributeSet atts,
                     int pos)
Indicates that a new HTML start tag has been entered.
Parameters:
tag - The tag
atts - The tag's attributes
pos - The character position of this tag in the document

endTag

public void endTag(javax.swing.text.html.HTML.Tag tag,
                   int pos)
Indicates that an HTML end tag has been reached
Parameters:
tag - The tag
pos - The character position of this tag in the document