|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hotsax.html.sax.DebugParserDelegate
public class DebugParserDelegate
SaxHandlerDelegate - provides a clean interface between the Byacc/J generated HtmlParse and the SaxParser.
Constructor Summary | |
---|---|
DebugParserDelegate(HtmlParser HtmlParser)
|
Method Summary | |
---|---|
void |
addAttribute(String name,
String value)
Adds an attribute to the list. |
void |
characters(HtmlParserVal lval)
collect characters from parse stream. |
void |
comment(HtmlParserVal lval)
comment handler Note, these are delegate to the XMLReader's LexicalHandler if any TODO: Check the property of the reader for its existance. |
void |
endCDATA()
CDATA handler Note, these are delegate to the XMLReader's LexicalHandler if any This only marks the end boundary of the CDATA section. |
void |
endDocument()
Fire endDocument event. |
void |
endDTD()
End the DOCTYPE declaration |
void |
endElement(HtmlParserVal lval)
Fire endElement event. |
HtmlParserVal |
getAttributes()
|
void |
processingInstruction(HtmlParserVal target,
HtmlParserVal lval)
Parse a PI and pass it to the contentHandler event (does not pass xml declaration: ) Separates the target from the data by using whitespace. |
void |
setXMLReader(XMLReader reader)
used by the SaxParser to set itself in ParserDelegate |
void |
startCDATA()
CDATA handler Note, these are delegate to the XMLReader's LexicalHandler if any This only marks the start boundary condition. |
void |
startDocument()
Parse a startDocument event and pass it to the resigtered content handler. |
void |
startDTD(HtmlParserVal lval)
Start the beginning of the DOCTYPE (DTD) declaration Note, these are delegate to the XMLReader's LexicalHandler if any |
void |
startElement()
Initialize the start of a start element. |
void |
startElement(HtmlParserVal lval)
Fire startElement event. |
void |
startElement(HtmlParserVal lval,
HtmlParserVal attrList)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DebugParserDelegate(HtmlParser HtmlParser)
Method Detail |
---|
public void startDocument()
startDocument
in interface ParserDelegate
public void processingInstruction(HtmlParserVal target, HtmlParserVal lval)
processingInstruction
in interface ParserDelegate
public void startElement()
startElement
in interface ParserDelegate
public void addAttribute(String name, String value)
addAttribute
in interface ParserDelegate
public HtmlParserVal getAttributes()
getAttributes
in interface ParserDelegate
public void startElement(HtmlParserVal lval, HtmlParserVal attrList)
startElement
in interface ParserDelegate
public void startElement(HtmlParserVal lval)
startElement
in interface ParserDelegate
public void characters(HtmlParserVal lval)
characters
in interface ParserDelegate
public void endElement(HtmlParserVal lval)
endElement
in interface ParserDelegate
public void endDocument()
endDocument
in interface ParserDelegate
public void comment(HtmlParserVal lval)
comment
in interface ParserDelegate
public void startCDATA()
startCDATA
in interface ParserDelegate
public void endCDATA()
endCDATA
in interface ParserDelegate
public void startDTD(HtmlParserVal lval)
startDTD
in interface ParserDelegate
lval
- HtmlParserVal represents the document type handle, system id or public id from the DOCTYPE declarationpublic void endDTD()
endDTD
in interface ParserDelegate
public void setXMLReader(XMLReader reader)
setXMLReader
in interface ParserDelegate
reader
- the XMLReader or really the current SAXParser
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |