You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by sb...@apache.org on 2002/03/27 23:15:11 UTC
cvs commit: xml-xalan/java/src/org/apache/xml/utils SAXSourceLocator.java
sboag 02/03/27 14:15:11
Modified: java/src/org/apache/xml/utils SAXSourceLocator.java
Log:
Add a constructor that takes a SourceLocator.
Revision Changes Path
1.5 +16 -0 xml-xalan/java/src/org/apache/xml/utils/SAXSourceLocator.java
Index: SAXSourceLocator.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xml/utils/SAXSourceLocator.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- SAXSourceLocator.java 9 Jan 2001 23:57:24 -0000 1.4
+++ SAXSourceLocator.java 27 Mar 2002 22:15:11 -0000 1.5
@@ -102,6 +102,22 @@
* Constructor SAXSourceLocator
*
*
+ * @param locator Source locator
+ */
+ public SAXSourceLocator(javax.xml.transform.SourceLocator locator)
+ {
+ m_locator = null;
+ this.setColumnNumber(locator.getColumnNumber());
+ this.setLineNumber(locator.getLineNumber());
+ this.setPublicId(locator.getPublicId());
+ this.setSystemId(locator.getSystemId());
+ }
+
+
+ /**
+ * Constructor SAXSourceLocator
+ *
+ *
* @param spe SAXParseException exception.
*/
public SAXSourceLocator(SAXParseException spe)
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org