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 2001/01/10 00:57:24 UTC

cvs commit: xml-xalan/java/src/org/apache/xml/utils SAXSourceLocator.java

sboag       01/01/09 15:57:24

  Modified:    java/src/org/apache/xml/utils SAXSourceLocator.java
  Log:
  Add constructor that takes a SAXParseException.
  
  Revision  Changes    Path
  1.4       +15 -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.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SAXSourceLocator.java	2001/01/02 03:42:50	1.3
  +++ SAXSourceLocator.java	2001/01/09 23:57:24	1.4
  @@ -60,6 +60,7 @@
   
   import org.xml.sax.helpers.LocatorImpl;
   import org.xml.sax.Locator;
  +import org.xml.sax.SAXParseException;
   
   import java.io.Serializable;
   
  @@ -95,6 +96,20 @@
       this.setLineNumber(locator.getLineNumber());
       this.setPublicId(locator.getPublicId());
       this.setSystemId(locator.getSystemId());
  +  }
  +  
  +  /**
  +   * Constructor SAXSourceLocator
  +   *
  +   *
  +   * @param spe SAXParseException exception.
  +   */
  +  public SAXSourceLocator(SAXParseException spe)
  +  {
  +    this.setLineNumber( spe.getLineNumber() );
  +    this.setColumnNumber( spe.getColumnNumber() );
  +    this.setPublicId( spe.getPublicId() );
  +    this.setSystemId( spe.getSystemId() );
     }
     
     /**