|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ontopia.xml.AbstractXMLFormatReader
net.ontopia.topicmaps.xml.TMXMLReader
public class TMXMLReader
PUBLIC: A reader importing topic maps (or fragments) from the TM/XML syntax.
| Field Summary |
|---|
| Fields inherited from class net.ontopia.xml.AbstractXMLFormatReader |
|---|
base_address, source, xrfactory |
| Constructor Summary | |
|---|---|
TMXMLReader(org.xml.sax.InputSource source,
LocatorIF base)
PUBLIC: Creates a reader reading from the given location, using a different base address. |
|
TMXMLReader(LocatorIF base)
PUBLIC: Creates a reader reading from the given location. |
|
TMXMLReader(java.lang.String filename)
PUBLIC: Creates a reader reading from the given file name. |
|
| Method Summary | |
|---|---|
protected void |
configureXMLReaderFactory(ConfiguredXMLReaderFactory cxrfactory)
|
boolean |
getValidate()
|
void |
importInto(TopicMapIF topicmap)
PUBLIC: Imports an implicitly designated topic map into the given topic map. |
TopicMapIF |
read()
PUBLIC: Reads the next topic map available from some implicit, implementation dependent source. |
java.util.Collection |
readAll()
PUBLIC: Reads all the topic map available from some implicit, implementation dependent source. |
void |
setValidate(boolean validate)
|
| Methods inherited from class net.ontopia.xml.AbstractXMLFormatReader |
|---|
getBaseAddress, getInputSource, getXMLReaderFactory, setBaseAddress, setInputSource, setXMLReaderFactory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TMXMLReader(java.lang.String filename)
public TMXMLReader(LocatorIF base)
public TMXMLReader(org.xml.sax.InputSource source,
LocatorIF base)
| Method Detail |
|---|
public boolean getValidate()
public void setValidate(boolean validate)
public TopicMapIF read()
throws java.io.IOException
TopicMapReaderIFnull is returned when there are no more
topic maps available. In a sense this is iterator-like
behaviour.
read in interface TopicMapReaderIFjava.io.IOException - Thrown if reading the source fails.
public void importInto(TopicMapIF topicmap)
throws java.io.IOException
TopicMapImporterIF
importInto in interface TopicMapImporterIFtopicmap - The topic map into which the import will be done;
an object implementing TopicMapIF.
java.io.IOException
public java.util.Collection readAll()
throws java.io.IOException
TopicMapReaderIF
readAll in interface TopicMapReaderIFjava.io.IOException - Thrown if reading the source fails.protected void configureXMLReaderFactory(ConfiguredXMLReaderFactory cxrfactory)
configureXMLReaderFactory in class AbstractXMLFormatReader
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||