Example usage for org.xml.sax Locator getPublicId

List of usage examples for org.xml.sax Locator getPublicId

Introduction

In this page you can find the example usage for org.xml.sax Locator getPublicId.

Prototype

public abstract String getPublicId();

Source Link

Document

Return the public identifier for the current document event.

Usage

From source file:TypeInfoWriter.java

/** Set document locator. */
public void setDocumentLocator(Locator locator) {

    fIndent = 0;//from   w ww  .j a  v  a2  s .c  o  m
    printIndent();
    fOut.print("setDocumentLocator(");
    fOut.print("systemId=");
    printQuotedString(locator.getSystemId());
    fOut.print(", publicId=");
    printQuotedString(locator.getPublicId());
    fOut.println(')');
    fOut.flush();

}

From source file:org.apache.cocoon.transformation.LDAPTransformer.java

/** BEGIN SAX ContentHandler handlers */

public void setDocumentLocator(Locator locator) {
    if (getLogger().isDebugEnabled()) {
        getLogger().debug("PUBLIC ID: " + locator.getPublicId());
        getLogger().debug("SYSTEM ID: " + locator.getSystemId());
    }//  www .  j  a  v  a 2s . c  o  m
    if (super.contentHandler != null)
        super.contentHandler.setDocumentLocator(locator);
}