Class URILocation

  • Direct Known Subclasses:
    SchemaLocation, URILocationImpl

    public abstract class URILocation
    extends java.lang.Object
    An interface for handling URIs
    Version:
    $Revision: 5951 $ $Date: 2005-03-05 06:42:06 -0700 (Sat, 05 Mar 2005) $
    Author:
    Keith Visco
    • Constructor Summary

      Constructors 
      Constructor Description
      URILocation()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract java.lang.String getAbsoluteURI()
      Returns the absolute URI for this URILocation
      abstract java.lang.String getBaseURI()
      Returns the base location of this URILocation.
      abstract java.io.Reader getReader()
      Returns a Reader for the resource represented by this URILocation.
      abstract java.lang.String getRelativeURI()
      Returns the relative URI for this URILocation
      java.lang.String toString()
      Returns the String representation of this URILocation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • URILocation

        public URILocation()
    • Method Detail

      • getAbsoluteURI

        public abstract java.lang.String getAbsoluteURI()
        Returns the absolute URI for this URILocation
        Returns:
        the absolute URI for this URILocation
        See Also:
        getRelativeURI(), getBaseURI()
      • getBaseURI

        public abstract java.lang.String getBaseURI()
        Returns the base location of this URILocation. If this URILocation is an URL, the base location will be equivalent to the document base for the URL.
        Returns:
        the base location of this URILocation
        See Also:
        getAbsoluteURI(), getRelativeURI()
      • getReader

        public abstract java.io.Reader getReader()
                                          throws java.io.IOException
        Returns a Reader for the resource represented by this URILocation.
        Returns:
        a Reader for the resource represented by this URILocation
        Throws:
        java.io.IOException
      • getRelativeURI

        public abstract java.lang.String getRelativeURI()
        Returns the relative URI for this URILocation
        Returns:
        the relative URI for this URILocation
        See Also:
        getAbsoluteURI(), getBaseURI()
      • toString

        public java.lang.String toString()
        Returns the String representation of this URILocation.
        Overrides:
        toString in class java.lang.Object
        Returns:
        the String representation of this URILocation