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 70 public class LocatorProxy implements Locator { 71 72 76 77 private final XMLLocator fLocator; 78 79 80 private final String fVersion; 81 82 86 87 public LocatorProxy(XMLLocator locator, String version) { 88 fLocator = locator; 89 fVersion = version; 90 } 91 95 96 public String getPublicId() { 97 return fLocator.getPublicId(); 98 } 99 100 101 public String getSystemId() { 102 return fLocator.getExpandedSystemId(); 103 } 104 105 public int getLineNumber() { 106 return fLocator.getLineNumber(); 107 } 108 109 110 public int getColumnNumber() { 111 return fLocator.getColumnNumber(); 112 } 113 114 public String getXMLVersion() { 116 return fVersion; 117 } 118 119 public String getEncoding() { 120 return fLocator.getEncoding(); 121 } 122 123 } 124 | Popular Tags |