Package org.exolab.adaptx.net.impl
Class URILocationImpl
java.lang.Object
org.exolab.adaptx.net.URILocation
org.exolab.adaptx.net.impl.URILocationImpl
An implementation of URILocation
- Author:
- Keith Visco
-
Constructor Summary
ConstructorsConstructorDescriptionURILocationImpl
(InputStream is, String href) Creates a new URILocationImplURILocationImpl
(Reader reader, String href) Creates a new URILocationImplURILocationImpl
(String href) Creates a new URILocationImplURILocationImpl
(String href, String documentBase) Creates a new URILocationImpl -
Method Summary
Modifier and TypeMethodDescriptionReturns the absolute URI for this URILocationReturns the base location of this URILocation.Returns a Reader for the resource represented by this URILocation.Returns the relative URI for this URILocationtoString()
Returns the String representation of this URILocation.
-
Constructor Details
-
URILocationImpl
Creates a new URILocationImpl -
URILocationImpl
Creates a new URILocationImpl -
URILocationImpl
Creates a new URILocationImpl -
URILocationImpl
Creates a new URILocationImpl
-
-
Method Details
-
getAbsoluteURI
Returns the absolute URI for this URILocation- Specified by:
getAbsoluteURI
in classURILocation
- Returns:
- the absolute URI for this URILocation
- See Also:
-
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.- Specified by:
getBaseURI
in classURILocation
- Returns:
- the base location of this URILocation
- See Also:
-
getReader
Returns a Reader for the resource represented by this URILocation.- Specified by:
getReader
in classURILocation
- Returns:
- a Reader for the resource represented by this URILocation
- Throws:
FileNotFoundException
IOException
-
getRelativeURI
Returns the relative URI for this URILocation- Specified by:
getRelativeURI
in classURILocation
- Returns:
- the relative URI for this URILocation
- See Also:
-
toString
Returns the String representation of this URILocation.- Overrides:
toString
in classURILocation
- Returns:
- the String representation of this URILocation
-