org.tm4j.topicmap.utils.TopicMapMerger .addSource(java.net.URL in,org.tm4j.net.Locator baseLocator)
Description
Constructs a TopicMapSource from the given URL and locator, and adds it to the list of sources. This is merely a convenience method which constructs an InputStream from the given URL, and then invokes #addSource(InputStream, Locator).
Parameters | ||
---|---|---|
org.tm4j.net.Locator | baseLocator |
the base locator to be used with the topic map.
May be null , in which case it will be ignored, a
warning will be issued to the registered Log (if any), and
the default base locator will be used instead.
the base locator to be used with the topic map.
May be null , in which case it will be silently ignored and
the default base locator will be used instead.
|
java.io.File | in |
the URL from which to read the topic map. Must not be
null .
the file from which to read the topic map. Must not be
null .
the stream from which to read the topic map. Must not be
null .
|
Throws
- java.io.IOException - if the URL is inaccessible.
Meta Data (1)