Package net.ontopia.xml
Class AbstractXMLFormatReader
- java.lang.Object
-
- net.ontopia.xml.AbstractXMLFormatReader
-
- Direct Known Subclasses:
TMXMLReader
,XFMLTopicMapReader
,XTMTopicMapReader
public abstract class AbstractXMLFormatReader extends Object
INTERNAL: A common base class for Reader implementations that can read XML-based syntaxes.- Since:
- 1.2
-
-
Field Summary
Fields Modifier and Type Field Description protected LocatorIF
base_address
protected InputSource
source
-
Constructor Summary
Constructors Constructor Description AbstractXMLFormatReader()
AbstractXMLFormatReader(File file)
AbstractXMLFormatReader(InputStream stream, LocatorIF base_address)
AbstractXMLFormatReader(Reader reader, LocatorIF base_address)
AbstractXMLFormatReader(URL url)
AbstractXMLFormatReader(URL url, LocatorIF base_address)
AbstractXMLFormatReader(InputSource source, LocatorIF base_address)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocatorIF
getBaseAddress()
INTERNAL: Gets the top level base address of the input source.InputSource
getInputSource()
INTERNAL: Gets the SAX input source used by the reader.void
setBaseAddress(LocatorIF base_address)
INTERNAL: Sets the top level base address of the input source.void
setInputSource(InputSource source)
INTERNAL: Sets the SAX input source used by the reader.
-
-
-
Field Detail
-
source
protected InputSource source
-
base_address
protected LocatorIF base_address
-
-
Constructor Detail
-
AbstractXMLFormatReader
public AbstractXMLFormatReader()
-
AbstractXMLFormatReader
public AbstractXMLFormatReader(InputSource source, LocatorIF base_address)
-
AbstractXMLFormatReader
public AbstractXMLFormatReader(URL url) throws MalformedURLException
- Throws:
MalformedURLException
-
AbstractXMLFormatReader
public AbstractXMLFormatReader(InputStream stream, LocatorIF base_address)
-
AbstractXMLFormatReader
public AbstractXMLFormatReader(File file) throws MalformedURLException
- Throws:
MalformedURLException
-
-
Method Detail
-
getInputSource
public InputSource getInputSource()
INTERNAL: Gets the SAX input source used by the reader.
-
setInputSource
public void setInputSource(InputSource source)
INTERNAL: Sets the SAX input source used by the reader.
-
getBaseAddress
public LocatorIF getBaseAddress()
INTERNAL: Gets the top level base address of the input source.
-
setBaseAddress
public void setBaseAddress(LocatorIF base_address)
INTERNAL: Sets the top level base address of the input source. The top level base address is used to resolve relative addresses during input source processing. The top level base address can be overriden by xml:base constructs in the input source. This property need not be set if the input source specifies the base address.
-
-