Code example for ContentHandler

Methods: setDocumentLocator

0
   * contentHandler operation (toXMLString, digest, ...) 
   */ 
  public TreeWalker(ContentHandler contentHandler, DOMHelper dh, String systemId)
  { 
    this.m_contentHandler = contentHandler;
    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             
         } 
    } 
    m_dh = dh;
  } 
 
  /** 
   * Constructor.