Class DefaultLexicalHandler

  • All Implemented Interfaces:
    org.xml.sax.ext.LexicalHandler

    @Deprecated(since="2022-01-27")
    public class DefaultLexicalHandler
    extends java.lang.Object
    implements org.xml.sax.ext.LexicalHandler
    Deprecated.
    This API is deprecated, migrate code to the XML APIs provided by the JDK.
    Default implementation of SAX's LexicalHandler interface. Empty implementation of all methods so that you only have to redefine the ones of interest.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.xml.sax.ext.LexicalHandler NULL_HANDLER
      Deprecated.
      Shared instance that can be used when lexical events should be ignored.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void comment​(char[] ch, int start, int length)
      Deprecated.
       
      void endCDATA()
      Deprecated.
       
      void endDTD()
      Deprecated.
       
      void endEntity​(java.lang.String name)
      Deprecated.
       
      void startCDATA()
      Deprecated.
       
      void startDTD​(java.lang.String name, java.lang.String publicId, java.lang.String systemId)
      Deprecated.
       
      void startEntity​(java.lang.String name)
      Deprecated.
       
      • Methods inherited from class java.lang.Object

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

      • NULL_HANDLER

        public static final org.xml.sax.ext.LexicalHandler NULL_HANDLER
        Deprecated.
        Shared instance that can be used when lexical events should be ignored.
    • Constructor Detail

      • DefaultLexicalHandler

        public DefaultLexicalHandler()
        Deprecated.
    • Method Detail

      • startDTD

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

        public void endDTD()
                    throws org.xml.sax.SAXException
        Deprecated.
        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
        Deprecated.
        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
        Deprecated.
        Specified by:
        endEntity in interface org.xml.sax.ext.LexicalHandler
        Throws:
        org.xml.sax.SAXException
      • startCDATA

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

        public void endCDATA()
                      throws org.xml.sax.SAXException
        Deprecated.
        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
        Deprecated.
        Specified by:
        comment in interface org.xml.sax.ext.LexicalHandler
        Throws:
        org.xml.sax.SAXException