org.exolab.adaptx.xml
Class SAXURILocation
public final class SAXURILocation
An implementation of ObjectURILocation for a SAX XMLReader
SAXURILocation(XMLReader reader, InputSource source) - Creates a new SAXURILocation
|
String | getAbsoluteURI() - Returns the absolute URI for this URILocation
|
String | getBaseURI() - Returns the base location of this URILocation.
|
InputSource | getInputSource() - Returns the InputSource for this SAXURILocation
|
Object | getObject() - Returns the Object from this ObjectURILocation.
|
Reader | getReader() - Returns the reader for this URILocation.
|
String | getRelativeURI() - Returns the relative URI for this URILocation
|
XMLReader | getXMLReader() - Returns the SAX XMLReader for this URILocation,
or null if not set.
|
String | toString() - Returns the String representation of
this URILocation.
|
SAXURILocation
public SAXURILocation(XMLReader reader,
InputSource source)
Creates a new SAXURILocation
getAbsoluteURI
public String getAbsoluteURI()
Returns the absolute URI for this URILocation
- getAbsoluteURI in interface URILocation
- the absolute URI for this URILocation
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.
- getBaseURI in interface URILocation
- the base location of this URILocation
getAbsoluteURI
, getRelativeURI
getInputSource
public InputSource getInputSource()
Returns the InputSource for this SAXURILocation
getObject
public Object getObject()
Returns the Object from this ObjectURILocation.
This method will return the XMLReader
- getObject in interface ObjectURILocation
- the Object from this ObjectURILocation
getReader
public Reader getReader()
throws java.io.IOException
Returns the reader for this URILocation.
This method may return null, if an XMLReader exists.
Try getXMLReader first.
- getReader in interface URILocation
- a Reader for the resource represented by
this URILocation
getRelativeURI
public String getRelativeURI()
Returns the relative URI for this URILocation
- getRelativeURI in interface URILocation
- the relative URI for this URILocation
getAbsoluteURI
, getBaseURI
getXMLReader
public XMLReader getXMLReader()
Returns the SAX XMLReader for this URILocation,
or null if not set.
- the SAX XMLReader for this URILocation
toString
public String toString()
Returns the String representation of
this URILocation.
- toString in interface URILocation
- the String representation of this URILocation