Package com.day.cq.rewriter.htmlparser
Class SAXWriter
- java.lang.Object
-
- com.day.cq.rewriter.htmlparser.SAXWriter
-
- All Implemented Interfaces:
Serializer
,org.xml.sax.ContentHandler
@Deprecated public class SAXWriter extends java.lang.Object implements Serializer
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 Constructor Description SAXWriter()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
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
endDocument()
Deprecated.void
endElement(java.lang.String uri, java.lang.String localName, java.lang.String name)
Deprecated.void
endPrefixMapping(java.lang.String prefix)
Deprecated.void
ignorableWhitespace(char[] ch, int start, int length)
Deprecated.void
init(ProcessingContext pipelineContext, ProcessingComponentConfiguration config)
Deprecated.Initialize this component.void
processingInstruction(java.lang.String target, java.lang.String data)
Deprecated.void
setDocumentLocator(org.xml.sax.Locator locator)
Deprecated.void
skippedEntity(java.lang.String name)
Deprecated.void
startDocument()
Deprecated.void
startElement(java.lang.String uri, java.lang.String localName, java.lang.String name, org.xml.sax.Attributes atts)
Deprecated.void
startPrefixMapping(java.lang.String prefix, java.lang.String uri)
Deprecated.
-
-
-
Method Detail
-
init
public void init(ProcessingContext pipelineContext, ProcessingComponentConfiguration config) throws java.io.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:
java.io.IOException
-IOException
- See Also:
Serializer.init(com.day.cq.rewriter.processor.ProcessingContext, com.day.cq.rewriter.processor.ProcessingComponentConfiguration)
-
endDocument
public void endDocument() throws org.xml.sax.SAXException
Deprecated.- Specified by:
endDocument
in interfaceorg.xml.sax.ContentHandler
- Throws:
org.xml.sax.SAXException
- See Also:
ContentHandler.endDocument()
-
startElement
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String name, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
Deprecated.- Specified by:
startElement
in interfaceorg.xml.sax.ContentHandler
- Throws:
org.xml.sax.SAXException
- See Also:
ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
-
endElement
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String name) throws org.xml.sax.SAXException
Deprecated.- Specified by:
endElement
in interfaceorg.xml.sax.ContentHandler
- Throws:
org.xml.sax.SAXException
- See Also:
ContentHandler.endElement(java.lang.String, java.lang.String, java.lang.String)
-
characters
public void characters(char[] buffer, int offset, int length) throws org.xml.sax.SAXException
Deprecated.Called by HtmlParser if character data and tags are to be output for which no special handling is necessary.- Specified by:
characters
in interfaceorg.xml.sax.ContentHandler
- Parameters:
buffer
- Character dataoffset
- Offset where character data startslength
- The length of the character data- Throws:
org.xml.sax.SAXException
-
endPrefixMapping
public void endPrefixMapping(java.lang.String prefix) throws org.xml.sax.SAXException
Deprecated.- Specified by:
endPrefixMapping
in interfaceorg.xml.sax.ContentHandler
- Throws:
org.xml.sax.SAXException
- See Also:
ContentHandler.endPrefixMapping(java.lang.String)
-
ignorableWhitespace
public void ignorableWhitespace(char[] ch, int start, int length) throws org.xml.sax.SAXException
Deprecated.- Specified by:
ignorableWhitespace
in interfaceorg.xml.sax.ContentHandler
- Throws:
org.xml.sax.SAXException
- See Also:
ContentHandler.ignorableWhitespace(char[], int, int)
-
processingInstruction
public void processingInstruction(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXException
Deprecated.- Specified by:
processingInstruction
in interfaceorg.xml.sax.ContentHandler
- Throws:
org.xml.sax.SAXException
- See Also:
ContentHandler.processingInstruction(java.lang.String, java.lang.String)
-
setDocumentLocator
public void setDocumentLocator(org.xml.sax.Locator locator)
Deprecated.- Specified by:
setDocumentLocator
in interfaceorg.xml.sax.ContentHandler
- See Also:
ContentHandler.setDocumentLocator(org.xml.sax.Locator)
-
skippedEntity
public void skippedEntity(java.lang.String name) throws org.xml.sax.SAXException
Deprecated.- Specified by:
skippedEntity
in interfaceorg.xml.sax.ContentHandler
- Throws:
org.xml.sax.SAXException
- See Also:
ContentHandler.skippedEntity(java.lang.String)
-
startDocument
public void startDocument() throws org.xml.sax.SAXException
Deprecated.- Specified by:
startDocument
in interfaceorg.xml.sax.ContentHandler
- Throws:
org.xml.sax.SAXException
- See Also:
ContentHandler.startDocument()
-
startPrefixMapping
public void startPrefixMapping(java.lang.String prefix, java.lang.String uri) throws org.xml.sax.SAXException
Deprecated.- Specified by:
startPrefixMapping
in interfaceorg.xml.sax.ContentHandler
- Throws:
org.xml.sax.SAXException
- See Also:
ContentHandler.startPrefixMapping(java.lang.String, java.lang.String)
-
-