Class 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.
       
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SAXWriter

        public SAXWriter()
        Deprecated.
    • Method Detail

      • endDocument

        public void endDocument()
                         throws org.xml.sax.SAXException
        Deprecated.
        Specified by:
        endDocument in interface org.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 interface org.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 interface org.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 interface org.xml.sax.ContentHandler
        Parameters:
        buffer - Character data
        offset - Offset where character data starts
        length - 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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.xml.sax.ContentHandler
        Throws:
        org.xml.sax.SAXException
        See Also:
        ContentHandler.startPrefixMapping(java.lang.String, java.lang.String)