public class XFMLTopicMapReader extends AbstractXMLFormatReader implements TopicMapReaderIF
| Modifier and Type | Field and Description |
|---|---|
protected TopicMapStoreFactoryIF |
store_factory |
base_address, source| Constructor and Description |
|---|
XFMLTopicMapReader(File file)
PUBLIC: Creates an XFML reader bound to the file given in the
argument.
|
XFMLTopicMapReader(InputSource source,
LocatorIF base_address)
PUBLIC: Creates a topic map reader bound to the input source
given in the arguments.
|
XFMLTopicMapReader(InputStream stream,
LocatorIF base_address)
Creates an XFML reader bound to the input stream given in the
arguments.
|
XFMLTopicMapReader(Reader reader,
LocatorIF base_address)
Creates an XFML reader bound to the reader given in the arguments.
|
XFMLTopicMapReader(URL url)
Creates an XFML reader.
|
| Modifier and Type | Method and Description |
|---|---|
TopicMapStoreFactoryIF |
getStoreFactory()
PUBLIC: Gets the store factory which will be used to create stores.
|
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.
|
Collection |
readAll()
PUBLIC: Reads all the topic map available from some implicit,
implementation dependent source.
|
void |
setAdditionalProperties(Map<String,Object> properties)
XFMLTopicMapReader has no additional options to set.
|
void |
setStoreFactory(TopicMapStoreFactoryIF store_factory)
PUBLIC: Sets the store factory which will be used to create stores.
|
getBaseAddress, getInputSource, setBaseAddress, setInputSourceprotected TopicMapStoreFactoryIF store_factory
public XFMLTopicMapReader(URL url) throws MalformedURLException
url - The URL of the XFML document.MalformedURLExceptionpublic XFMLTopicMapReader(Reader reader, LocatorIF base_address)
reader - The reader from which the XFML document is to be read.base_address - The base address to be used for resolving
relative references.public XFMLTopicMapReader(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 XFMLTopicMapReader(File file) throws MalformedURLException
file - The file object from which to read the topic map.MalformedURLExceptionpublic XFMLTopicMapReader(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 TopicMapStoreFactoryIF getStoreFactory()
public void setStoreFactory(TopicMapStoreFactoryIF store_factory)
Default: InMemoryStoreFactory
store_factory - The store factory to use. If the parameter
is null the default store factory will be used.public TopicMapIF read() throws IOException
TopicMapReaderIFnull is returned when there are no more
topic maps available. In a sense this is iterator-like
behaviour.read in interface TopicMapReaderIFIOException - Thrown if reading the source fails.public Collection readAll() throws IOException
TopicMapReaderIFreadAll in interface TopicMapReaderIFIOException - Thrown if reading the source fails.public void importInto(TopicMapIF topicmap) throws IOException
TopicMapReaderIFimportInto in interface TopicMapReaderIFtopicmap - The topic map into which the import will be done;
an object implementing TopicMapIF.IOExceptionpublic void setAdditionalProperties(Map<String,Object> properties)
setAdditionalProperties in interface TopicMapReaderIFproperties -