org.exolab.adaptx.net.impl

Class URILocationImpl

public final class URILocationImpl extends URILocation

An implementation of URILocation

Author: Keith Visco

Constructor Summary
URILocationImpl(String href)
Creates a new URILocationImpl
URILocationImpl(String href, String documentBase)
Creates a new URILocationImpl
URILocationImpl(Reader reader, String href)
Creates a new URILocationImpl
URILocationImpl(InputStream is, String href)
Creates a new URILocationImpl
Method Summary
StringgetAbsoluteURI()
Returns the absolute URI for this URILocation
StringgetBaseURI()
Returns the base location of this URILocation.
ReadergetReader()
Returns a Reader for the resource represented by this URILocation.
StringgetRelativeURI()
Returns the relative URI for this URILocation
StringtoString()
Returns the String representation of this URILocation.

Constructor Detail

URILocationImpl

public URILocationImpl(String href)
Creates a new URILocationImpl

URILocationImpl

public URILocationImpl(String href, String documentBase)
Creates a new URILocationImpl

URILocationImpl

public URILocationImpl(Reader reader, String href)
Creates a new URILocationImpl

URILocationImpl

public URILocationImpl(InputStream is, String href)
Creates a new URILocationImpl

Method Detail

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()
Returns a Reader for the resource represented by this URILocation.

Returns: a Reader for the resource represented by this URILocation

Throws: java.io.FileNotFoundException java.io.IOException

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