Package org.exolab.adaptx.net.impl
Class URILocationImpl
- java.lang.Object
-
- org.exolab.adaptx.net.URILocation
-
- org.exolab.adaptx.net.impl.URILocationImpl
-
public final class URILocationImpl extends URILocation
An implementation of URILocation- Author:
- Keith Visco
-
-
Constructor Summary
Constructors Constructor Description URILocationImpl(java.io.InputStream is, java.lang.String href)Creates a new URILocationImplURILocationImpl(java.io.Reader reader, java.lang.String href)Creates a new URILocationImplURILocationImpl(java.lang.String href)Creates a new URILocationImplURILocationImpl(java.lang.String href, java.lang.String documentBase)Creates a new URILocationImpl
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAbsoluteURI()Returns the absolute URI for this URILocationjava.lang.StringgetBaseURI()Returns the base location of this URILocation.java.io.ReadergetReader()Returns a Reader for the resource represented by this URILocation.java.lang.StringgetRelativeURI()Returns the relative URI for this URILocationjava.lang.StringtoString()Returns the String representation of this URILocation.
-
-
-
Constructor Detail
-
URILocationImpl
public URILocationImpl(java.lang.String href)
Creates a new URILocationImpl
-
URILocationImpl
public URILocationImpl(java.lang.String href, java.lang.String documentBase)Creates a new URILocationImpl
-
URILocationImpl
public URILocationImpl(java.io.Reader reader, java.lang.String href)Creates a new URILocationImpl
-
URILocationImpl
public URILocationImpl(java.io.InputStream is, java.lang.String href)Creates a new URILocationImpl
-
-
Method Detail
-
getAbsoluteURI
public java.lang.String getAbsoluteURI()
Returns the absolute URI for this URILocation- Specified by:
getAbsoluteURIin classURILocation- Returns:
- the absolute URI for this URILocation
- See Also:
getRelativeURI(),getBaseURI()
-
getBaseURI
public 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.- Specified by:
getBaseURIin classURILocation- Returns:
- the base location of this URILocation
- See Also:
getAbsoluteURI(),getRelativeURI()
-
getReader
public java.io.Reader getReader() throws java.io.IOExceptionReturns a Reader for the resource represented by this URILocation.- Specified by:
getReaderin classURILocation- Returns:
- a Reader for the resource represented by this URILocation
- Throws:
java.io.FileNotFoundExceptionjava.io.IOException
-
getRelativeURI
public java.lang.String getRelativeURI()
Returns the relative URI for this URILocation- Specified by:
getRelativeURIin classURILocation- 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 classURILocation- Returns:
- the String representation of this URILocation
-
-