Package org.exolab.adaptx.net
Class URILocation
- java.lang.Object
-
- org.exolab.adaptx.net.URILocation
-
- Direct Known Subclasses:
ObjectURILocation,URILocationImpl
public abstract class URILocation extends java.lang.ObjectAn interface for handling URIs- Author:
- Keith Visco
-
-
Constructor Summary
Constructors Constructor Description URILocation()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.StringgetAbsoluteURI()Returns the absolute URI for this URILocationabstract java.lang.StringgetBaseURI()Returns the base location of this URILocation.abstract java.io.ReadergetReader()Returns a Reader for the resource represented by this URILocation.abstract java.lang.StringgetRelativeURI()Returns the relative URI for this URILocationjava.lang.StringtoString()Returns the String representation of this 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.IOExceptionReturns 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:
toStringin classjava.lang.Object- Returns:
- the String representation of this URILocation
-
-