org.exolab.castor.net
Class URILocation

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

public abstract class URILocation
extends java.lang.Object

An interface for handling URIs

Version:
$Revision: 1.2 $ $Date: 2005/03/05 13:41:53 $
Author:
Keith Visco

Constructor Summary
URILocation()
           
 
Method Summary
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


Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com