org.exolab.adaptx.net

Class URILocation

public abstract class URILocation extends Object

An interface for handling URIs

Author: Keith Visco

Method Summary
abstract StringgetAbsoluteURI()
Returns the absolute URI for this URILocation
abstract StringgetBaseURI()
Returns the base location of this URILocation.
abstract ReadergetReader()
Returns a Reader for the resource represented by this URILocation.
abstract StringgetRelativeURI()
Returns the relative URI for this URILocation
StringtoString()
Returns the String representation of this 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()
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 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