1 57 package com.sun.org.apache.xerces.internal.util; 58 59 import com.sun.org.apache.xerces.internal.xni.XMLLocator; 60 import org.xml.sax.Locator ; 61 62 68 public class LocatorWrapper implements XMLLocator { 69 70 private final Locator locator; 71 72 public LocatorWrapper( Locator _loc ) { this.locator=_loc; } 73 74 public int getColumnNumber() { return locator.getColumnNumber(); } 75 public int getLineNumber() { return locator.getLineNumber(); } 76 public String getBaseSystemId() { return null; } 77 public String getExpandedSystemId() { return locator.getSystemId(); } 78 public String getLiteralSystemId() { return locator.getSystemId(); } 79 public String getPublicId() { return locator.getPublicId(); } 80 public String getEncoding() { return null; } 81 } 82 | Popular Tags |