|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ParserDelegate
ParserDelegate - provides a clean interface between the Byacc/J generated HtmlParse and the SaxParser. This cleanly separates what is to be done from actually doing it. A HtmlParser can be combined with a DOM or SAX backend.
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 |
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)
Set the the XMLReader this delegate is reading from |
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)
|
Method Detail |
---|
void startDocument()
void processingInstruction(HtmlParserVal target, HtmlParserVal lval)
void startElement()
void addAttribute(String name, String value)
HtmlParserVal getAttributes()
void startElement(HtmlParserVal lval, HtmlParserVal attrList)
void startElement(HtmlParserVal lval)
void characters(HtmlParserVal lval)
void endElement(HtmlParserVal lval)
void endDocument()
void comment(HtmlParserVal lval)
void startCDATA()
void endCDATA()
void startDTD(HtmlParserVal lval)
lval
- HtmlParserVal represents the document type handle, system id or public id from the DOCTYPE declarationvoid endDTD()
void setXMLReader(XMLReader reader)
reader
- the XMLReader or really the current SAXParser
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |