Package com.day.cq.rewriter.htmlparser
Interface DocumentHandler
- All Known Implementing Classes:
DocumentHandlerToSAXAdapter
Deprecated.
This is replaced by the Apache Sling Html parsing.
Invoked by the
HTMLParser when elements are scanned.-
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int off, int len) Deprecated.Receive notification of unparsed character data.voidonEnd()Deprecated.Receive notification of parsing end.voidonEndElement(String name, char[] ch, int off, int len) Deprecated.Receive notification of the end of an element.voidonStart()Deprecated.Receive notification of parsing start.voidonStartElement(String name, AttributeList attList, char[] ch, int off, int len, boolean endSlash) Deprecated.Receive notification of the beginning of an element.
-
Method Details
-
characters
Deprecated.Receive notification of unparsed character data.- Parameters:
ch- character dataoff- offset where character data startslen- length of character data- Throws:
IOException-IOException
-
onStartElement
void onStartElement(String name, AttributeList attList, char[] ch, int off, int len, boolean endSlash) throws IOException Deprecated.Receive notification of the beginning of an element.- Parameters:
name- tag nameattList- attribute listch- string equivalent to this notificationoff- offset where character data startslen- length of character dataendSlash- flag indicating whether the element is closed with an ending slash (xhtml-compliant)- Throws:
IOException-IOException
-
onEndElement
Deprecated.Receive notification of the end of an element.- Parameters:
name- tag namech- string equivalent to this notificationoff- offset where character data startslen- length of character data- Throws:
IOException-IOException
-
onStart
Deprecated.Receive notification of parsing start.- Throws:
IOException-IOException
-
onEnd
Deprecated.Receive notification of parsing end.- Throws:
IOException-IOException
-