org.exolab.castor.net.util

Class URILocationImpl


public final class URILocationImpl
extends URILocation

An implementation of URILocation
Version:
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:08:39 $
Author:
Keith Visco

Constructor Summary

URILocationImpl(InputStream is, String href)
Creates a new URILocationImpl
URILocationImpl(Reader reader, String href)
Creates a new URILocationImpl
URILocationImpl(String href)
Creates a new URILocationImpl
URILocationImpl(String href, String documentBase)
Creates a new URILocationImpl

Method Summary

String
getAbsoluteURI()
Returns the absolute URI for this URILocation
String
getBaseURI()
Returns the base location of this URILocation.
Reader
getReader()
Returns a Reader for the resource represented by this URILocation.
String
getRelativeURI()
Returns the relative URI for this URILocation
String
toString()
Returns the String representation of this URILocation.

Methods inherited from class org.exolab.castor.net.URILocation

getAbsoluteURI, getBaseURI, getReader, getRelativeURI, toString

Constructor Details

URILocationImpl

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

URILocationImpl

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

URILocationImpl

public URILocationImpl(String href)
Creates a new URILocationImpl

URILocationImpl

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

Method Details

getAbsoluteURI

public String getAbsoluteURI()
Returns the absolute URI for this URILocation
Overrides:
getAbsoluteURI in interface 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.
Overrides:
getBaseURI in interface URILocation
Returns:
the base location of this URILocation
See Also:
getAbsoluteURI, getRelativeURI

getReader

public Reader getReader()
            throws java.io.IOException
Returns a Reader for the resource represented by this URILocation.
Overrides:
getReader in interface URILocation
Returns:
a Reader for the resource represented by this URILocation

getRelativeURI

public String getRelativeURI()
Returns the relative URI for this URILocation
Overrides:
getRelativeURI in interface URILocation
Returns:
the relative URI for this URILocation
See Also:
getAbsoluteURI, getBaseURI

toString

public String toString()
Returns the String representation of this URILocation.
Overrides:
toString in interface URILocation
Returns:
the String representation of this URILocation

Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com