1 16 17 package org.apache.xerces.util; 18 19 import org.apache.xerces.xni.XMLLocator; 20 import org.xml.sax.Locator ; 21 import org.xml.sax.ext.Locator2 ; 22 23 31 public class LocatorProxy implements Locator2 { 32 33 37 38 private final XMLLocator fLocator; 39 40 44 45 public LocatorProxy(XMLLocator locator) { 46 fLocator = locator; 47 } 48 49 53 54 public String getPublicId() { 55 return fLocator.getPublicId(); 56 } 57 58 59 public String getSystemId() { 60 return fLocator.getExpandedSystemId(); 61 } 62 63 64 public int getLineNumber() { 65 return fLocator.getLineNumber(); 66 } 67 68 69 public int getColumnNumber() { 70 return fLocator.getColumnNumber(); 71 } 72 73 77 public String getXMLVersion() { 78 return fLocator.getXMLVersion(); 79 } 80 81 public String getEncoding() { 82 return fLocator.getEncoding(); 83 } 84 85 } 86 | Popular Tags |