org.exolab.adaptx.net

Class URILocation

Known Direct Subclasses:
URILocationImpl

public abstract class URILocation
extends java.lang.Object

An interface for handling URIs

Author:
Keith Visco

Method Summary

String
getAbsoluteURI()
Returns the absolute URI for this URILocation
String
getBaseURI()
Returns the base location of this URILocation.
Reader
getReader()
Returns a Reader for the resource represented by this URILocation.
String
getRelativeURI()
Returns the relative URI for this URILocation
String
toString()
Returns the String representation of this URILocation.

Method Details

getAbsoluteURI

public String getAbsoluteURI()
Returns the absolute URI for this URILocation

Returns:
the absolute URI for this URILocation

See Also:
getRelativeURI, getBaseURI


getBaseURI

public 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 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


getRelativeURI

public 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.

Returns:
the String representation of this URILocation