Class XMLFilterImplEx

  • All Implemented Interfaces:
    org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, org.xml.sax.ext.LexicalHandler, org.xml.sax.XMLFilter, org.xml.sax.XMLReader

    public class XMLFilterImplEx
    extends org.xml.sax.helpers.XMLFilterImpl
    implements org.xml.sax.ext.LexicalHandler
    Extension to XMLFilterImpl that implements LexicalHandler.
    • Constructor Summary

      Constructors 
      Constructor Description
      XMLFilterImplEx()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void comment​(char[] ch, int start, int length)  
      void endCDATA()  
      void endDTD()  
      void endEntity​(java.lang.String name)  
      org.xml.sax.ext.LexicalHandler getLexicalHandler()
      Get the lexical event handler.
      boolean getNamespacePrefixes()  
      void setLexicalHandler​(org.xml.sax.ext.LexicalHandler handler)
      Set the lexical event handler.
      void setNamespacePrefixes​(boolean v)  
      void startCDATA()  
      void startDTD​(java.lang.String name, java.lang.String publicId, java.lang.String systemId)  
      void startEntity​(java.lang.String name)  
      • Methods inherited from class org.xml.sax.helpers.XMLFilterImpl

        characters, endDocument, endElement, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • lexicalHandler

        protected org.xml.sax.ext.LexicalHandler lexicalHandler
      • namespacePrefixes

        protected boolean namespacePrefixes
    • Constructor Detail

      • XMLFilterImplEx

        public XMLFilterImplEx()
    • Method Detail

      • getNamespacePrefixes

        public boolean getNamespacePrefixes()
      • setNamespacePrefixes

        public void setNamespacePrefixes​(boolean v)
      • getLexicalHandler

        public org.xml.sax.ext.LexicalHandler getLexicalHandler()
        Get the lexical event handler.
        Returns:
        The current lexical handler, or null if none was set.
      • setLexicalHandler

        public void setLexicalHandler​(org.xml.sax.ext.LexicalHandler handler)
        Set the lexical event handler.
        Parameters:
        handler - the new lexical handler
      • startDTD

        public void startDTD​(java.lang.String name,
                             java.lang.String publicId,
                             java.lang.String systemId)
                      throws org.xml.sax.SAXException
        Specified by:
        startDTD in interface org.xml.sax.ext.LexicalHandler
        Throws:
        org.xml.sax.SAXException
      • endDTD

        public void endDTD()
                    throws org.xml.sax.SAXException
        Specified by:
        endDTD in interface org.xml.sax.ext.LexicalHandler
        Throws:
        org.xml.sax.SAXException
      • startEntity

        public void startEntity​(java.lang.String name)
                         throws org.xml.sax.SAXException
        Specified by:
        startEntity in interface org.xml.sax.ext.LexicalHandler
        Throws:
        org.xml.sax.SAXException
      • endEntity

        public void endEntity​(java.lang.String name)
                       throws org.xml.sax.SAXException
        Specified by:
        endEntity in interface org.xml.sax.ext.LexicalHandler
        Throws:
        org.xml.sax.SAXException
      • startCDATA

        public void startCDATA()
                        throws org.xml.sax.SAXException
        Specified by:
        startCDATA in interface org.xml.sax.ext.LexicalHandler
        Throws:
        org.xml.sax.SAXException
      • endCDATA

        public void endCDATA()
                      throws org.xml.sax.SAXException
        Specified by:
        endCDATA in interface org.xml.sax.ext.LexicalHandler
        Throws:
        org.xml.sax.SAXException
      • comment

        public void comment​(char[] ch,
                            int start,
                            int length)
                     throws org.xml.sax.SAXException
        Specified by:
        comment in interface org.xml.sax.ext.LexicalHandler
        Throws:
        org.xml.sax.SAXException