Class URILocation

java.lang.Object
org.exolab.castor.net.URILocation
Direct Known Subclasses:
SchemaLocation, URILocationImpl

public abstract class URILocation extends 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 Details

    • URILocation

      public URILocation()
  • Method Details

    • getAbsoluteURI

      public abstract String getAbsoluteURI()
      Returns the absolute URI for this URILocation
      Returns:
      the absolute URI for this URILocation
      See Also:
    • getBaseURI

      public abstract 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:
    • getReader

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

      public abstract String getRelativeURI()
      Returns the relative URI for this URILocation
      Returns:
      the relative URI for this URILocation
      See Also:
    • toString

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