org.enhydra.xml.xmlc.html.parsers.swing
Class ParserAdaptor.DocumentParser11

java.lang.Object
  |
  +--javax.swing.text.html.parser.Parser
        |
        +--javax.swing.text.html.parser.DocumentParser
              |
              +--org.enhydra.xml.xmlc.html.parsers.swing.ParserAdaptor.DocumentParserBase
                    |
                    +--org.enhydra.xml.xmlc.html.parsers.swing.ParserAdaptor.DocumentParser11
All Implemented Interfaces:
javax.swing.text.html.parser.DTDConstants
Enclosing class:
ParserAdaptor

class ParserAdaptor.DocumentParser11
extends ParserAdaptor.DocumentParserBase

DocumentParser for 1.1 that allows LINKs in headers.


Field Summary
protected  javax.swing.text.html.HTMLEditorKit.ParserCallback fCallback
          saved callback pointer
 
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
ParserAdaptor.DocumentParser11(javax.swing.text.html.parser.DTD dtd)
          Constructor.
 
Method Summary
protected  void handleEmptyTag(javax.swing.text.html.parser.TagElement tag)
          override handleEmptyTag to allow links in headers.
 void parse(java.io.Reader in, javax.swing.text.html.HTMLEditorKit.ParserCallback callback, boolean ignoreCharSet)
          Override parse to get callback pointer.
 
Methods inherited from class javax.swing.text.html.parser.DocumentParser
handleComment, handleEndTag, handleError, handleStartTag, handleText
 
Methods inherited from class javax.swing.text.html.parser.Parser
endTag, error, error, error, error, flushAttributes, getAttributes, getCurrentLine, getCurrentPos, handleEOFInComment, handleTitle, 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

fCallback

protected javax.swing.text.html.HTMLEditorKit.ParserCallback fCallback
saved callback pointer

Constructor Detail

ParserAdaptor.DocumentParser11

public ParserAdaptor.DocumentParser11(javax.swing.text.html.parser.DTD dtd)
Constructor.

Method Detail

handleEmptyTag

protected void handleEmptyTag(javax.swing.text.html.parser.TagElement tag)
                       throws javax.swing.text.ChangedCharSetException
override handleEmptyTag to allow links in headers.

Overrides:
handleEmptyTag in class javax.swing.text.html.parser.DocumentParser
javax.swing.text.ChangedCharSetException

parse

public void parse(java.io.Reader in,
                  javax.swing.text.html.HTMLEditorKit.ParserCallback callback,
                  boolean ignoreCharSet)
           throws java.io.IOException
Override parse to get callback pointer.

Overrides:
parse in class javax.swing.text.html.parser.DocumentParser
java.io.IOException


Copyright © 1999-2002 enhydra.org (Mark Diekhans, David Li, Richard Kunze). All Rights reserved.