org.tm4j.topicmap.TopicMapProvider .addTopicMap(java.io.InputStream src,org.tm4j.net.Locator baseLocator,org.tm4j.topicmap.TopicMap existingTopicMap,org.tm4j.topicmap.utils.TopicMapBuilder builder)

Description

Imports a topic map into the data store managed by this TopicMapProvider using the specified builder to parse the input stream.

Parameters
org.tm4j.net.Locator baseLocator The base address to assign to the generated topic map only if the parsed topic map does not specify its own base address internally. The base address to assign to the generated topic map only if the parsed topic map does not have an xml:base attribute on its root element.
org.tm4j.topicmap.utils.TopicMapBuilder builder The builder to use in parsing the input stream.
org.tm4j.topicmap.TopicMap existingTopicMap If this parameter is not null, then the TopicMap object passed in must be a TopicMap which is provided by this TopicMapProvider. The topic map parsed from src will be merged with existingTopicMap and no new TopicMap object will be created. If this parameter is not null, then the TopicMap object passed in must be a TopicMap which is provided by this TopicMapProvider. The topic map parsed from src will be merged with existingTopicMap and no new TopicMap object will be created.
java.io.InputStream src The InputStream of the XTM data to be read. The InputStream of the topic map data to be read.

Throws

Returns

The new TopicMap object managed by the TopicMapProvider. If existingTopicMap is not null, then the return value from the function will be the same object as is passed in existingTopicMap. If existingTopicMap is null, then a new TopicMap object will be returned.

Other Resources