edu.stanford.nlp.web
Class LocusLinkParser

java.lang.Object
  |
  +--javax.swing.text.html.HTMLEditorKit.ParserCallback
        |
        +--edu.stanford.nlp.web.HTMLParser
              |
              +--edu.stanford.nlp.web.LocusLinkParser

public class LocusLinkParser
extends HTMLParser

A parser which parses a LocusLink HTML Document.


Field Summary
 
Fields inherited from class edu.stanford.nlp.web.HTMLParser
textBuffer, title
 
Fields inherited from class javax.swing.text.html.HTMLEditorKit.ParserCallback
IMPLIED
 
Constructor Summary
LocusLinkParser()
           
 
Method Summary
 void handleComment(char[] data, int pos)
           
 void handleEndTag(HTML.Tag tag, int pos)
          Sets a flag if the end tag is the "TITLE" element end tag
 void handleStartTag(HTML.Tag tag, MutableAttributeSet attrSet, int pos)
          Sets a flag if the start tag is the "TITLE" element start tag.
 void handleText(char[] data, int pos)
           
 
Methods inherited from class edu.stanford.nlp.web.HTMLParser
parse, parse, parse, title
 
Methods inherited from class javax.swing.text.html.HTMLEditorKit.ParserCallback
flush, handleEndOfLineString, handleError, handleSimpleTag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocusLinkParser

public LocusLinkParser()
Method Detail

handleComment

public void handleComment(char[] data,
                          int pos)
Overrides:
handleComment in class HTMLEditorKit.ParserCallback

handleText

public void handleText(char[] data,
                       int pos)
Overrides:
handleText in class HTMLParser

handleStartTag

public void handleStartTag(HTML.Tag tag,
                           MutableAttributeSet attrSet,
                           int pos)
Description copied from class: HTMLParser
Sets a flag if the start tag is the "TITLE" element start tag.

Overrides:
handleStartTag in class HTMLParser

handleEndTag

public void handleEndTag(HTML.Tag tag,
                         int pos)
Description copied from class: HTMLParser
Sets a flag if the end tag is the "TITLE" element end tag

Overrides:
handleEndTag in class HTMLParser


Stanford NLP Group