Interface DocumentHandler
- All Known Implementing Classes:
- TemplateParser.TemplateParserContext
public interface DocumentHandler
Invoked by the 
HTMLParser when elements are scanned.- 
Method SummaryModifier and TypeMethodDescriptionvoidonCharacters(char[] ch, int off, int len) Receive notification of unparsed character data.voidvoidonEnd()Receive notification of parsing end.voidonEndElement(String name) Receive notification of the end of an element.voidonStart()Receive notification of parsing start.voidonStartElement(String name, AttributeList attList, boolean endSlash) Receive notification of the beginning of an element.
- 
Method Details- 
onCharactersReceive notification of unparsed character data.- Parameters:
- ch- the character buffer
- off- the offset
- len- the length of the unparsed character data
- Throws:
- IOException- if the characters cannot be processed
 
- 
onComment- Throws:
- IOException
 
- 
onStartElementReceive notification of the beginning of an element.- Parameters:
- name- tag name
- attList- attribute list
- endSlash- flag indicating whether the element is closed with an ending slash (xhtml-compliant)
- Throws:
- IOException- if the element cannot be processed
 
- 
onEndElementReceive notification of the end of an element.- Parameters:
- name- tag name
- Throws:
- IOException- if the element cannot be processed
 
- 
onStartReceive notification of parsing start.- Throws:
- IOException- if the parsing operation cannot start
 
- 
onEndReceive notification of parsing end.- Throws:
- IOException- if the parsing operation cannot end
 
 
-