Package net.ontopia.topicmaps.utils.jtm
Class JTMTopicMapReader
java.lang.Object
net.ontopia.topicmaps.impl.utils.AbstractTopicMapReader
net.ontopia.topicmaps.utils.jtm.JTMTopicMapReader
- All Implemented Interfaces:
TopicMapReaderIF
PUBLIC: This TopicMapReader can read topic maps in JTM 1.0 notation.
- Since:
- 5.1
-
Field Summary
Fields inherited from class net.ontopia.topicmaps.impl.utils.AbstractTopicMapReader
base_address, reader, store_factory, stream, url -
Constructor Summary
ConstructorsConstructorDescriptionJTMTopicMapReader(File file) PUBLIC: Creates a topic map reader bound to the file given in the arguments.JTMTopicMapReader(InputStream stream, LocatorIF base_address) PUBLIC: Creates a topic map reader bound to the input stream given in the arguments.JTMTopicMapReader(Reader reader, LocatorIF base_address) PUBLIC: Creates a topic map reader bound to the reader given in the arguments.JTMTopicMapReader(URL url) PUBLIC: Creates a topic map reader bound to the URL given in the arguments. -
Method Summary
Modifier and TypeMethodDescriptionprotected TopicMapIFread(TopicMapStoreFactoryIF store_factory) Methods inherited from class net.ontopia.topicmaps.impl.utils.AbstractTopicMapReader
getBaseAddress, getReader, getStoreFactory, importInto, makeReader, makeReader, makeReader, read, readAll, readAll, setAdditionalProperties, setBaseAddress, setReader, setStoreFactory
-
Constructor Details
-
JTMTopicMapReader
PUBLIC: Creates a topic map reader bound to the URL given in the arguments.- Parameters:
url- The URL of the LTM file.- Throws:
MalformedURLException
-
JTMTopicMapReader
PUBLIC: Creates a topic map reader bound to the reader given in the arguments.- Parameters:
reader- The reader from which the topic map is to be read.base_address- The base address to be used for resolving relative references.
-
JTMTopicMapReader
PUBLIC: Creates a topic map reader bound to the input stream given in the arguments.- Parameters:
stream- The input stream from which the topic map is to be read.base_address- The base address to be used for resolving relative references.
-
JTMTopicMapReader
PUBLIC: Creates a topic map reader bound to the file given in the arguments.- Parameters:
file- The file object from which to read the topic map.- Throws:
IOException
-
-
Method Details
-
read
- Specified by:
readin classAbstractTopicMapReader- Throws:
IOException
-