com.skyhunter.ex.swing.text.html.parser
Class EHTMLParser

java.lang.Object
  |
  +--javax.swing.text.html.parser.Parser
        |
        +--com.skyhunter.ex.swing.text.html.parser.EHTMLParser
All Implemented Interfaces:
DTDConstants

public class EHTMLParser
extends Parser

Untamed:


Field Summary
private  EHTMLHandler eHandler
           
 
Fields inherited from class javax.swing.text.html.parser.Parser
dtd, strict
 
Fields inherited from interface javax.swing.text.html.parser.DTDConstants
ANY, CDATA, CONREF, CURRENT, DEFAULT, EMPTY, ENDTAG, ENTITIES, ENTITY, FIXED, GENERAL, ID, IDREF, IDREFS, IMPLIED, MD, MODEL, MS, NAME, NAMES, NMTOKEN, NMTOKENS, NOTATION, NUMBER, NUMBERS, NUTOKEN, NUTOKENS, PARAMETER, PI, PUBLIC, RCDATA, REQUIRED, SDATA, STARTTAG, SYSTEM
 
Constructor Summary
EHTMLParser(DTD dtd, EHTMLHandler eHTMLHandler)
          Enabled:
 
Method Summary
protected  void handleComment(char[] text)
          Called when an HTML comment is encountered.
protected  void handleEmptyTag(TagElement elem)
          Called when an empty tag is encountered.
protected  void handleEndTag(TagElement elem)
          Called when an end tag is encountered.
protected  void handleEOFInComment()
           
protected  void handleError(int ln, String msg)
          An error has occurred.
protected  void handleStartTag(TagElement elem)
          Called when a start tag is encountered.
protected  void handleText(char[] text)
          Called when PCDATA is encountered.
protected  void handleTitle(char[] text)
          Called when an HTML title tag is encountered.
 
Methods inherited from class javax.swing.text.html.parser.Parser
endTag, error, error, error, error, flushAttributes, getAttributes, getCurrentLine, getCurrentPos, makeTag, makeTag, markFirstTime, parse, parseDTDMarkup, parseMarkupDeclarations, startTag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

eHandler

private EHTMLHandler eHandler
Constructor Detail

EHTMLParser

public EHTMLParser(DTD dtd,
                   EHTMLHandler eHTMLHandler)
Enabled:

Method Detail

handleStartTag

protected void handleStartTag(TagElement elem)
Description copied from class: Parser
Called when a start tag is encountered.

Overrides:
handleStartTag in class Parser

handleEndTag

protected void handleEndTag(TagElement elem)
Description copied from class: Parser
Called when an end tag is encountered.

Overrides:
handleEndTag in class Parser

handleComment

protected void handleComment(char[] text)
Description copied from class: Parser
Called when an HTML comment is encountered.

Overrides:
handleComment in class Parser

handleEmptyTag

protected void handleEmptyTag(TagElement elem)
Description copied from class: Parser
Called when an empty tag is encountered.

Overrides:
handleEmptyTag in class Parser

handleEOFInComment

protected void handleEOFInComment()
Overrides:
handleEOFInComment in class Parser

handleError

protected void handleError(int ln,
                           String msg)
Description copied from class: Parser
An error has occurred.

Overrides:
handleError in class Parser

handleText

protected void handleText(char[] text)
Description copied from class: Parser
Called when PCDATA is encountered.

Overrides:
handleText in class Parser

handleTitle

protected void handleTitle(char[] text)
Description copied from class: Parser
Called when an HTML title tag is encountered.

Overrides:
handleTitle in class Parser


comments?