|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Receives notification of the logical content of a document.
This is similar to the ContentHandler
interface in SAX. The difference is that this class expects the invoking
HTMLParser
to only send notifications of those elements that have
been registered with the parser. In other words, this handler would most
likely be only interested in handling special tags like the
<footnote>
tag (see HTMLParser
). In a typical use
case, regular HTML markup like <p>
or <b>
would not generate the startElement(String, AttributeMap)
and
endElement(String, AttributeMap)
events.
Method Summary | |
void |
endDocument()
Receives notification of the end of a document. |
void |
endElement(String qName)
Receives notification of the end of an element. |
void |
startDocument()
Receives notification of the beginning of a document. |
void |
startElement(String qName,
AttributeMap attributes)
Receives notification of the beginning of an element. |
void |
text(String text)
Receives notification of textual data. |
Method Detail |
public void startDocument() throws HTMLParserException
HTMLParserException
public void endDocument() throws HTMLParserException
HTMLParserException
public void text(String text) throws HTMLParserException
HTMLParserException
public void startElement(String qName, AttributeMap attributes) throws HTMLParserException
HTMLParser.isRegistered(String)
is true. Any other HTML markup will be
treated as text and will be dispatched to text(String)
.
HTMLParserException
public void endElement(String qName) throws HTMLParserException
HTMLParser.isRegistered(String)
is true. Any other HTML markup will be
treated as text and will be dispatched to text(String)
.
HTMLParserException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |