Package org.exolab.adaptx.xml
Class SAXURILocation
java.lang.Object
org.exolab.adaptx.net.URILocation
org.exolab.adaptx.net.ObjectURILocation
org.exolab.adaptx.xml.SAXURILocation
An implementation of ObjectURILocation for a SAX XMLReader
- Author:
- Keith Visco
-
Constructor Summary
ConstructorsConstructorDescriptionSAXURILocation
(XMLReader reader, InputSource source) Creates a new SAXURILocation -
Method Summary
Modifier and TypeMethodDescriptionReturns the absolute URI for this URILocationReturns the base location of this URILocation.Returns the InputSource for this SAXURILocationReturns the Object from this ObjectURILocation.Returns the reader for this URILocation.Returns the relative URI for this URILocationReturns the SAX XMLReader for this URILocation, or null if not set.toString()
Returns the String representation of this URILocation.
-
Constructor Details
-
SAXURILocation
Creates a new SAXURILocation
-
-
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:
-
getXMLReader
Returns the SAX XMLReader for this URILocation, or null if not set.- Returns:
- the SAX XMLReader for this URILocation
-
getInputSource
Returns the InputSource for this SAXURILocation- Returns:
- the InputSource
-
getObject
Returns the Object from this ObjectURILocation.This method will return the XMLReader
- Specified by:
getObject
in classObjectURILocation
- Returns:
- the Object from this ObjectURILocation
- See Also:
-
getReader
Returns the reader for this URILocation.This method may return null, if an XMLReader exists. Try getXMLReader first.
- 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
-