Package com.day.cq.rewriter.htmlparser
Class SAXWriter
- java.lang.Object
-
- com.day.cq.rewriter.htmlparser.SAXWriter
-
- All Implemented Interfaces:
Serializer,ContentHandler
@Deprecated public class SAXWriter extends 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 voidcharacters(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.voidendDocument()Deprecated.voidendElement(String uri, String localName, String name)Deprecated.voidendPrefixMapping(String prefix)Deprecated.voidignorableWhitespace(char[] ch, int start, int length)Deprecated.voidinit(ProcessingContext pipelineContext, ProcessingComponentConfiguration config)Deprecated.Initialize this component.voidprocessingInstruction(String target, String data)Deprecated.voidsetDocumentLocator(Locator locator)Deprecated.voidskippedEntity(String name)Deprecated.voidstartDocument()Deprecated.voidstartElement(String uri, String localName, String name, Attributes atts)Deprecated.voidstartPrefixMapping(String prefix, String uri)Deprecated.
-
-
-
Method Detail
-
init
public void init(ProcessingContext pipelineContext, ProcessingComponentConfiguration config) throws IOException
Deprecated.Description copied from interface:SerializerInitialize this component.- Specified by:
initin interfaceSerializer- Parameters:
pipelineContext- The invocation context.config- The configuration for this component.- Throws:
IOException-IOException- See Also:
Serializer.init(com.day.cq.rewriter.processor.ProcessingContext, com.day.cq.rewriter.processor.ProcessingComponentConfiguration)
-
endDocument
public void endDocument() throws SAXExceptionDeprecated.- Specified by:
endDocumentin interfaceContentHandler- Throws:
SAXException- See Also:
ContentHandler.endDocument()
-
startElement
public void startElement(String uri, String localName, String name, Attributes atts) throws SAXException
Deprecated.- Specified by:
startElementin interfaceContentHandler- Throws:
SAXException- See Also:
ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
-
endElement
public void endElement(String uri, String localName, String name) throws SAXException
Deprecated.- Specified by:
endElementin interfaceContentHandler- Throws:
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 SAXExceptionDeprecated.Called by HtmlParser if character data and tags are to be output for which no special handling is necessary.- Specified by:
charactersin interfaceContentHandler- Parameters:
buffer- Character dataoffset- Offset where character data startslength- The length of the character data- Throws:
SAXException
-
endPrefixMapping
public void endPrefixMapping(String prefix) throws SAXException
Deprecated.- Specified by:
endPrefixMappingin interfaceContentHandler- Throws:
SAXException- See Also:
ContentHandler.endPrefixMapping(java.lang.String)
-
ignorableWhitespace
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXExceptionDeprecated.- Specified by:
ignorableWhitespacein interfaceContentHandler- Throws:
SAXException- See Also:
ContentHandler.ignorableWhitespace(char[], int, int)
-
processingInstruction
public void processingInstruction(String target, String data) throws SAXException
Deprecated.- Specified by:
processingInstructionin interfaceContentHandler- Throws:
SAXException- See Also:
ContentHandler.processingInstruction(java.lang.String, java.lang.String)
-
setDocumentLocator
public void setDocumentLocator(Locator locator)
Deprecated.- Specified by:
setDocumentLocatorin interfaceContentHandler- See Also:
ContentHandler.setDocumentLocator(org.xml.sax.Locator)
-
skippedEntity
public void skippedEntity(String name) throws SAXException
Deprecated.- Specified by:
skippedEntityin interfaceContentHandler- Throws:
SAXException- See Also:
ContentHandler.skippedEntity(java.lang.String)
-
startDocument
public void startDocument() throws SAXExceptionDeprecated.- Specified by:
startDocumentin interfaceContentHandler- Throws:
SAXException- See Also:
ContentHandler.startDocument()
-
startPrefixMapping
public void startPrefixMapping(String prefix, String uri) throws SAXException
Deprecated.- Specified by:
startPrefixMappingin interfaceContentHandler- Throws:
SAXException- See Also:
ContentHandler.startPrefixMapping(java.lang.String, java.lang.String)
-
-