Package com.day.cq.rewriter.htmlparser
Class SAXWriter
java.lang.Object
com.day.cq.rewriter.htmlparser.SAXWriter
- All Implemented Interfaces:
Serializer
,ContentHandler
Deprecated.
Use the Apache Sling Html Serializer instead.
Writer passed on to other Sling components. Removes or marks bad links
in HTML data.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(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.void
Deprecated.void
endElement
(String uri, String localName, String name) Deprecated.void
endPrefixMapping
(String prefix) Deprecated.void
ignorableWhitespace
(char[] ch, int start, int length) Deprecated.void
init
(ProcessingContext pipelineContext, ProcessingComponentConfiguration config) Deprecated.Initialize this component.void
processingInstruction
(String target, String data) Deprecated.void
setDocumentLocator
(Locator locator) Deprecated.void
skippedEntity
(String name) Deprecated.void
Deprecated.void
startElement
(String uri, String localName, String name, Attributes atts) Deprecated.void
startPrefixMapping
(String prefix, String uri) Deprecated.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
SAXWriter
public SAXWriter()Deprecated.
-
-
Method Details
-
init
public void init(ProcessingContext pipelineContext, ProcessingComponentConfiguration config) throws IOException Deprecated.Description copied from interface:Serializer
Initialize this component.- Specified by:
init
in interfaceSerializer
- Parameters:
pipelineContext
- The invocation context.config
- The configuration for this component.- Throws:
IOException
-IOException
- See Also:
-
endDocument
Deprecated.- Specified by:
endDocument
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
startElement
public void startElement(String uri, String localName, String name, Attributes atts) throws SAXException Deprecated.- Specified by:
startElement
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
endElement
Deprecated.- Specified by:
endElement
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
characters
Deprecated.Called by HtmlParser if character data and tags are to be output for which no special handling is necessary.- Specified by:
characters
in interfaceContentHandler
- Parameters:
buffer
- Character dataoffset
- Offset where character data startslength
- The length of the character data- Throws:
SAXException
-
endPrefixMapping
Deprecated.- Specified by:
endPrefixMapping
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
ignorableWhitespace
Deprecated.- Specified by:
ignorableWhitespace
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
processingInstruction
Deprecated.- Specified by:
processingInstruction
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
setDocumentLocator
Deprecated.- Specified by:
setDocumentLocator
in interfaceContentHandler
- See Also:
-
skippedEntity
Deprecated.- Specified by:
skippedEntity
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
startDocument
Deprecated.- Specified by:
startDocument
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
startPrefixMapping
Deprecated.- Specified by:
startPrefixMapping
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-