com.clickntap.tool.html
Class HTMLDocumentParser

java.lang.Object
  extended by javax.swing.text.html.parser.Parser
      extended by javax.swing.text.html.parser.DocumentParser
          extended by com.clickntap.tool.html.HTMLDocumentParser
All Implemented Interfaces:
DTDConstants

public class HTMLDocumentParser
extends DocumentParser


Field Summary
static String EXPECTED_TAGNAME_ERROR_KEY
           
 boolean expectedTagName
           
static String TAGCLOSER
           
static String XML_TAGNAME
           
 
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
HTMLDocumentParser(DTD dtd)
           
 
Method Summary
protected  void error(String errorKey)
           
protected  void handleText(char[] data)
           
 
Methods inherited from class javax.swing.text.html.parser.DocumentParser
handleComment, handleEmptyTag, handleEndTag, handleError, handleStartTag, parse
 
Methods inherited from class javax.swing.text.html.parser.Parser
endTag, 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

TAGCLOSER

public static final String TAGCLOSER
See Also:
Constant Field Values

XML_TAGNAME

public static final String XML_TAGNAME
See Also:
Constant Field Values

EXPECTED_TAGNAME_ERROR_KEY

public static final String EXPECTED_TAGNAME_ERROR_KEY
See Also:
Constant Field Values

expectedTagName

public boolean expectedTagName
Constructor Detail

HTMLDocumentParser

public HTMLDocumentParser(DTD dtd)
Method Detail

error

protected void error(String errorKey)
Overrides:
error in class Parser

handleText

protected void handleText(char[] data)
Overrides:
handleText in class DocumentParser


Copyright © 2014. All rights reserved.