Package net.ontopia.topicmaps.utils.ctm
Class CTMTopicMapReader
- java.lang.Object
-
- net.ontopia.topicmaps.impl.utils.AbstractTopicMapReader
-
- net.ontopia.topicmaps.utils.ctm.CTMTopicMapReader
-
- All Implemented Interfaces:
TopicMapReaderIF
public class CTMTopicMapReader extends AbstractTopicMapReader
PUBLIC: This TopicMapReader can read topic maps from the ISO-standard CTM syntax. It implements the 2010-03-31 draft.- Since:
- 4.0.5
-
-
Field Summary
-
Fields inherited from class net.ontopia.topicmaps.impl.utils.AbstractTopicMapReader
base_address, reader, store_factory, stream, url
-
-
Constructor Summary
Constructors Constructor Description CTMTopicMapReader(File file)PUBLIC: Creates a topic map reader bound to the file given in the arguments.CTMTopicMapReader(InputStream stream, LocatorIF base_address)PUBLIC: Creates a topic map reader bound to the input stream given in the arguments.CTMTopicMapReader(Reader reader, LocatorIF base_address)PUBLIC: Creates a topic map reader bound to the reader given in the arguments.CTMTopicMapReader(URL url)PUBLIC: Creates a topic map reader bound to the URL given in the arguments.CTMTopicMapReader(URL url, LocatorIF base_address)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ReadermakeReader(InputStream stream, String encoding)protected 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 Detail
-
CTMTopicMapReader
public CTMTopicMapReader(URL url) throws MalformedURLException
PUBLIC: Creates a topic map reader bound to the URL given in the arguments.- Parameters:
url- The URL of the LTM file.- Throws:
MalformedURLException
-
CTMTopicMapReader
public CTMTopicMapReader(Reader reader, LocatorIF base_address)
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.
-
CTMTopicMapReader
public CTMTopicMapReader(InputStream stream, LocatorIF base_address)
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.
-
CTMTopicMapReader
public CTMTopicMapReader(File file) throws IOException
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 Detail
-
read
protected TopicMapIF read(TopicMapStoreFactoryIF store_factory) throws IOException
- Specified by:
readin classAbstractTopicMapReader- Throws:
IOException
-
makeReader
protected Reader makeReader(InputStream stream, String encoding) throws IOException
- Throws:
IOException
-
-