public class RDBMSTopicMapReader extends Object implements TopicMapReaderIF
Modifier and Type | Field and Description |
---|---|
protected Map |
properties |
protected String |
propfile |
protected long |
topicmap_id |
Constructor and Description |
---|
RDBMSTopicMapReader(long topicmap_id) |
RDBMSTopicMapReader(Map properties,
long topicmap_id) |
RDBMSTopicMapReader(String propfile,
long topicmap_id) |
Modifier and Type | Method and Description |
---|---|
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<TopicMapIF> |
readAll()
PUBLIC: Reads all the topic map available from some implicit,
implementation dependent source.
|
void |
setAdditionalProperties(Map<String,Object> properties)
RDBMSTopicMapReader does not accept any additional properties outside of the specified
properties file.
|
protected String propfile
protected Map properties
protected long topicmap_id
public RDBMSTopicMapReader(long topicmap_id)
public RDBMSTopicMapReader(String propfile, long topicmap_id)
public RDBMSTopicMapReader(Map properties, long topicmap_id)
public TopicMapIF read() throws IOException
TopicMapReaderIF
null
is returned when there are no more
topic maps available. In a sense this is iterator-like
behaviour.read
in interface TopicMapReaderIF
IOException
- Thrown if reading the source fails.public Collection<TopicMapIF> readAll() throws IOException
TopicMapReaderIF
readAll
in interface TopicMapReaderIF
IOException
- Thrown if reading the source fails.public void setAdditionalProperties(Map<String,Object> properties)
setAdditionalProperties
in interface TopicMapReaderIF
properties
- public void importInto(TopicMapIF topicmap) throws IOException
TopicMapReaderIF
importInto
in interface TopicMapReaderIF
topicmap
- The topic map into which the import will be done;
an object implementing TopicMapIF.IOException