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
-
URILocationImpl
-
URILocationImpl
Creates a new URILocationImpl
-
-
Method Details
-
getAbsoluteURI
Returns the absolute URI for this URILocation- Specified by:
getAbsoluteURIin 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:
getBaseURIin classURILocation- Returns:
- the base location of this URILocation
- See Also:
-
getReader
Returns a Reader for the resource represented by this URILocation.- Specified by:
getReaderin classURILocation- Returns:
- a Reader for the resource represented by this URILocation
- Throws:
FileNotFoundExceptionIOException
-
getRelativeURI
Returns the relative URI for this URILocation- Specified by:
getRelativeURIin classURILocation- Returns:
- the relative URI for this URILocation
- See Also:
-
toString
Returns the String representation of this URILocation.- Overrides:
toStringin classURILocation- Returns:
- the String representation of this URILocation
-