|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ontopia.topicmaps.impl.utils.AbstractTopicMapReader
net.ontopia.topicmaps.utils.ctm.CTMTopicMapReader
public class CTMTopicMapReader
PUBLIC: This TopicMapReader can read topic maps from the ISO-standard CTM syntax. It implements the 2010-03-31 draft.
| Field Summary |
|---|
| Fields inherited from class net.ontopia.topicmaps.impl.utils.AbstractTopicMapReader |
|---|
base_address, source, store_factory |
| Constructor Summary | |
|---|---|
CTMTopicMapReader(File file)
PUBLIC: Creates a topic map reader bound to the file given in the arguments. |
|
CTMTopicMapReader(InputSource source,
LocatorIF base_address)
PUBLIC: Creates a topic map reader bound to the input source 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(LocatorIF url)
PUBLIC: Creates a topic map reader bound to the URL 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(String url)
PUBLIC: Creates a topic map reader bound to the URL given in the arguments. |
|
| Method Summary | |
|---|---|
protected Reader |
makeReader(InputStream stream,
String encoding)
|
protected TopicMapIF |
read(TopicMapStoreFactoryIF store_factory)
|
| Methods inherited from class net.ontopia.topicmaps.impl.utils.AbstractTopicMapReader |
|---|
getBaseAddress, getInputSource, getStoreFactory, importInto, makeReader, makeReader, read, readAll, readAll, setBaseAddress, setInputSource, setStoreFactory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CTMTopicMapReader(String url)
throws MalformedURLException
url - The URL of the LTM file.
MalformedURLException
public CTMTopicMapReader(Reader reader,
LocatorIF base_address)
reader - The reader from which the topic map is to be read.base_address - The base address to be used for resolving
relative references.
public CTMTopicMapReader(InputStream stream,
LocatorIF base_address)
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.
public CTMTopicMapReader(File file)
throws IOException
file - The file object from which to read the topic map.
IOException
public CTMTopicMapReader(InputSource source,
LocatorIF base_address)
source - The SAX input source from which the topic map is to be read.base_address - The base address to be used for resolving
relative references.public CTMTopicMapReader(LocatorIF url)
url - The URL of the topic map document.| Method Detail |
|---|
protected TopicMapIF read(TopicMapStoreFactoryIF store_factory)
throws IOException
read in class AbstractTopicMapReaderIOException
protected Reader makeReader(InputStream stream,
String encoding)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||