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 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(java.lang.String uri, java.lang.String localName, java.lang.String name)Deprecated.voidendPrefixMapping(java.lang.String prefix)Deprecated.voidignorableWhitespace(char[] ch, int start, int length)Deprecated.voidinit(ProcessingContext pipelineContext, ProcessingComponentConfiguration config)Deprecated.Initialize this component.voidprocessingInstruction(java.lang.String target, java.lang.String data)Deprecated.voidsetDocumentLocator(org.xml.sax.Locator locator)Deprecated.voidskippedEntity(java.lang.String name)Deprecated.voidstartDocument()Deprecated.voidstartElement(java.lang.String uri, java.lang.String localName, java.lang.String name, org.xml.sax.Attributes atts)Deprecated.voidstartPrefixMapping(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:SerializerInitialize this component.- Specified by:
 initin 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.SAXExceptionDeprecated.- Specified by:
 endDocumentin 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.SAXExceptionDeprecated.- Specified by:
 startElementin 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.SAXExceptionDeprecated.- Specified by:
 endElementin 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.SAXExceptionDeprecated.Called by HtmlParser if character data and tags are to be output for which no special handling is necessary.- Specified by:
 charactersin 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.SAXExceptionDeprecated.- Specified by:
 endPrefixMappingin 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.SAXExceptionDeprecated.- Specified by:
 ignorableWhitespacein 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.SAXExceptionDeprecated.- Specified by:
 processingInstructionin 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:
 setDocumentLocatorin interfaceorg.xml.sax.ContentHandler- See Also:
 ContentHandler.setDocumentLocator(org.xml.sax.Locator)
 
- 
skippedEntity
public void skippedEntity(java.lang.String name) throws org.xml.sax.SAXExceptionDeprecated.- Specified by:
 skippedEntityin interfaceorg.xml.sax.ContentHandler- Throws:
 org.xml.sax.SAXException- See Also:
 ContentHandler.skippedEntity(java.lang.String)
 
- 
startDocument
public void startDocument() throws org.xml.sax.SAXExceptionDeprecated.- Specified by:
 startDocumentin 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.SAXExceptionDeprecated.- Specified by:
 startPrefixMappingin interfaceorg.xml.sax.ContentHandler- Throws:
 org.xml.sax.SAXException- See Also:
 ContentHandler.startPrefixMapping(java.lang.String, java.lang.String)
 
 - 
 
 -