org.exolab.castor.net
Class URILocation

java.lang.Object
  extended by org.exolab.castor.net.URILocation
Direct Known Subclasses:
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 Summary
URILocation()
           
 
Method Summary
abstract  String getAbsoluteURI()
          Returns the absolute URI for this URILocation
abstract  String getBaseURI()
          Returns the base location of this URILocation.
abstract  Reader getReader()
          Returns a Reader for the resource represented by this URILocation.
abstract  String getRelativeURI()
          Returns the relative URI for this URILocation
 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 String getAbsoluteURI()
Returns the absolute URI for this URILocation

Returns:
the absolute URI for this URILocation
See Also:
getRelativeURI(), getBaseURI()

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:
getAbsoluteURI(), getRelativeURI()

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:
getAbsoluteURI(), getBaseURI()

toString

public String toString()
Returns the String representation of this URILocation.

Overrides:
toString in class Object
Returns:
the String representation of this URILocation


Copyright © 2010. All Rights Reserved.