public interface DocumentHandler
HTMLParser when elements are scanned.| Modifier and Type | Method and Description |
|---|---|
void |
onCharacters(char[] ch,
int off,
int len)
Receive notification of unparsed character data.
|
void |
onComment(String characters) |
void |
onEnd()
Receive notification of parsing end.
|
void |
onEndElement(String name)
Receive notification of the end of an element.
|
void |
onStart()
Receive notification of parsing start.
|
void |
onStartElement(String name,
AttributeList attList,
boolean endSlash)
Receive notification of the beginning of an element.
|
void onCharacters(char[] ch,
int off,
int len)
throws IOException
ch - the character bufferoff - the offsetlen - the length of the unparsed character dataIOException - if the characters cannot be processedvoid onComment(String characters) throws IOException
IOExceptionvoid onStartElement(String name, AttributeList attList, boolean endSlash) throws IOException
name - tag nameattList - attribute listendSlash - flag indicating whether the element is closed with
an ending slash (xhtml-compliant)IOException - if the element cannot be processedvoid onEndElement(String name) throws IOException
name - tag nameIOException - if the element cannot be processedvoid onStart()
throws IOException
IOException - if the parsing operation cannot startvoid onEnd()
throws IOException
IOException - if the parsing operation cannot endCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.