mrglavas    2004/09/24 11:03:01

  Modified:    java/src/org/apache/xerces/impl XMLEntityManager.java
  Log:
  Adding a convenience method for other classes which

  wish to resolve URIs against the current user dir.

  
  Revision  Changes    Path
  1.86      +13 -1     xml-xerces/java/src/org/apache/xerces/impl/XMLEntityManager.java
  
  Index: XMLEntityManager.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/java/src/org/apache/xerces/impl/XMLEntityManager.java,v
  retrieving revision 1.85
  retrieving revision 1.86
  diff -u -r1.85 -r1.86
  --- XMLEntityManager.java     22 Sep 2004 04:19:33 -0000      1.85
  +++ XMLEntityManager.java     24 Sep 2004 18:03:01 -0000      1.86
  @@ -1565,6 +1565,18 @@
   
           return gUserDirURI;
       }
  +    
  +    /**
  +     * Absolutizes a URI using the current value
  +     * of the "user.dir" property as the base URI. If
  +     * the URI is already absolute, this is a no-op.
  +     * 
  +     * @param uri the URI to absolutize
  +     */
  +    public static void absolutizeAgainstUserDir(URI uri) 
  +        throws URI.MalformedURIException {
  +        uri.absolutize(getUserDir());
  +    }
   
       /**
        * Expands a system id and returns the system id as a URI, if
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to