net.ontopia.topicmaps.utils.ltm
Class LTMTopicMapReader

java.lang.Object
  extended by net.ontopia.topicmaps.impl.utils.AbstractTopicMapReader
      extended by net.ontopia.topicmaps.utils.ltm.LTMTopicMapReader
All Implemented Interfaces:
TopicMapImporterIF, TopicMapReaderIF

public class LTMTopicMapReader
extends AbstractTopicMapReader

PUBLIC: This TopicMapReader can read topic maps from LTM files.

Since:
1.1

Field Summary
 
Fields inherited from class net.ontopia.topicmaps.impl.utils.AbstractTopicMapReader
base_address, source, store_factory
 
Constructor Summary
LTMTopicMapReader(java.io.File file)
          PUBLIC: Creates a topic map reader bound to the file given in the arguments.
LTMTopicMapReader(org.xml.sax.InputSource source, LocatorIF base_address)
          PUBLIC: Creates a topic map reader bound to the input source given in the arguments.
LTMTopicMapReader(java.io.InputStream stream, LocatorIF base_address)
          PUBLIC: Creates a topic map reader bound to the input stream given in the arguments.
LTMTopicMapReader(LocatorIF url)
          PUBLIC: Creates a topic map reader bound to the URL given in the arguments.
LTMTopicMapReader(java.io.Reader reader, LocatorIF base_address)
          PUBLIC: Creates a topic map reader bound to the reader given in the arguments.
LTMTopicMapReader(java.lang.String url)
          PUBLIC: Creates a topic map reader bound to the URL given in the arguments.
 
Method Summary
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

LTMTopicMapReader

public LTMTopicMapReader(java.lang.String url)
                  throws java.net.MalformedURLException
PUBLIC: Creates a topic map reader bound to the URL given in the arguments.

Parameters:
url - The URL of the LTM file.
Throws:
java.net.MalformedURLException

LTMTopicMapReader

public LTMTopicMapReader(java.io.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.

LTMTopicMapReader

public LTMTopicMapReader(java.io.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.

LTMTopicMapReader

public LTMTopicMapReader(java.io.File file)
                  throws java.io.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:
java.io.IOException

LTMTopicMapReader

public LTMTopicMapReader(org.xml.sax.InputSource source,
                         LocatorIF base_address)
PUBLIC: Creates a topic map reader bound to the input source given in the arguments.

Parameters:
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.

LTMTopicMapReader

public LTMTopicMapReader(LocatorIF url)
PUBLIC: Creates a topic map reader bound to the URL given in the arguments.

Parameters:
url - The URL of the topic map document.
Since:
2.0
Method Detail

read

protected TopicMapIF read(TopicMapStoreFactoryIF store_factory)
                   throws java.io.IOException
Specified by:
read in class AbstractTopicMapReader
Throws:
java.io.IOException


Copyright © 2000-2012 Ontopia.