Code example for ContentHandler

Methods: setDocumentLocator

0
      } 
      else 
          m_Serializer = null;
           
      // Set the system ID, if it is given 
      m_contentHandler.setDocumentLocator(m_locator);
      if (systemId != null)
          m_locator.setSystemId(systemId);
      else { 
          try { 
            // Bug see Bugzilla  26741 
            m_locator.setSystemId(System.getProperty("user.dir") + File.separator + "dummy.xsl");
           } 
           catch (SecurityException se) {// user.dir not accessible from applet             
           } 
      } 
           
      // Set the document locator   
                if (m_contentHandler != null)
                        m_contentHandler.setDocumentLocator(m_locator);
                try { 
                   // Bug see Bugzilla  26741 
                  m_locator.setSystemId(System.getProperty("user.dir") + File.separator + "dummy.xsl");
                }  
                catch (SecurityException se){// user.dir not accessible from applet