Package com.day.cq.rewriter.htmlparser
Class DocumentHandlerToSAXAdapter
java.lang.Object
com.day.cq.rewriter.htmlparser.DocumentHandlerToSAXAdapter
- All Implemented Interfaces:
DocumentHandler
Deprecated.
This is replaced by the Apache Sling Html parsing.
This is an adapter from the document handler events to SAX events.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] buffer, int offset, int length) Deprecated.Called by HtmlParser if character data and tags are to be output for which no special handling is necessary.voidonEnd()Deprecated.Receive notification of parsing end.voidonEndElement(String tagName, char[] buffer, int offset, int length) Deprecated.Called by HtmlParser for the end element of a tag that requires special handling.voidonStart()Deprecated.Receive notification of parsing start.voidonStartElement(String tagName, AttributeList attributes, char[] buffer, int offset, int length, boolean endSlash) Deprecated.Called by HtmlParser for the start element of a tag that requires special handling.
-
Field Details
-
NAMESPACE
Deprecated.- See Also:
-
END_SLASH_ATTR
Deprecated.- See Also:
-
QUOTES_ATTR
Deprecated.- See Also:
-
-
Constructor Details
-
DocumentHandlerToSAXAdapter
Deprecated.
-
-
Method Details
-
characters
Deprecated.Called by HtmlParser if character data and tags are to be output for which no special handling is necessary.- Specified by:
charactersin interfaceDocumentHandler- Parameters:
buffer- Character dataoffset- Offset where character data startslength- The length of the character data- Throws:
IOException-IOException- See Also:
-
onStartElement
public void onStartElement(String tagName, AttributeList attributes, char[] buffer, int offset, int length, boolean endSlash) throws IOException Deprecated.Called by HtmlParser for the start element of a tag that requires special handling. Remembers base reference and removes invalid links.- Specified by:
onStartElementin interfaceDocumentHandler- Parameters:
tagName- Tag nameattributes- List of attributesbuffer- Contains the whole tag including attributesoffset- Offset where the character data startslength- Length of the character dataendSlash- Flag indicating whether the element is closed with an ending slash (xhtml-compliant)- Throws:
IOException-IOException
-
onEndElement
Deprecated.Called by HtmlParser for the end element of a tag that requires special handling. Removes end element if corresponding start element (link) has already been removed.- Specified by:
onEndElementin interfaceDocumentHandler- Parameters:
tagName- Tag namebuffer- Contains the whole tag including attributesoffset- Offset where the character data startslength- Length of the character data- Throws:
IOException-IOException
-
onEnd
Deprecated.Description copied from interface:DocumentHandlerReceive notification of parsing end.- Specified by:
onEndin interfaceDocumentHandler- Throws:
IOException-IOException- See Also:
-
onStart
Deprecated.Description copied from interface:DocumentHandlerReceive notification of parsing start.- Specified by:
onStartin interfaceDocumentHandler- Throws:
IOException-IOException- See Also:
-