|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.tm4j.topicmap.source.SerializedTopicMapSource
This is a implementation of the TopicMapSource Interface representing serialized
TopicMaps. It uses a
TopicMapProviderFactory factory = TopicMapProviderFactory.newInstance();
TopicMapBuilder to
build the TopicMap.
Usage:
TopicMapProvider provider = factory.newTopicMapProvider();
TopicMapSource source = new SerializedTopicMapSource("c:\\temp\\opera.xtm");
TopicMap map = provider.addTopicMap(source);
| Constructor Summary | |
SerializedTopicMapSource(java.io.File file)
Creates a SerializedTopicMapSource representing a file specified by the given File Object |
|
SerializedTopicMapSource(java.io.File file,
Locator base)
Creates a SerializedTopicMapSource representing a file specified by the given File Object |
|
SerializedTopicMapSource(java.io.File file,
Locator base,
TopicMapBuilder builder)
Creates a SerializedTopicMapSource representing a file specified by the given File Object. |
|
SerializedTopicMapSource(java.io.File file,
TopicMapBuilder builder)
Creates a SerializedTopicMapSource representing a file specified by the given File Object. |
|
SerializedTopicMapSource(java.io.InputStream stream,
Locator base)
Creates a SerializedTopicMapSource representing a stream |
|
SerializedTopicMapSource(java.io.InputStream stream,
Locator base,
TopicMapBuilder builder)
Creates a SerializedTopicMapSource representing the given InputStream |
|
SerializedTopicMapSource(java.io.Reader reader,
Locator base)
Creates a SerializedTopicMapSource connected to a Reader |
|
SerializedTopicMapSource(java.io.Reader reader,
Locator base,
TopicMapBuilder builder)
Creates a SerializedTopicMapSource representing the given Reader |
|
SerializedTopicMapSource(java.lang.String fileName)
Creates a SerializedTopicMapSource representing a file specified by its name |
|
SerializedTopicMapSource(java.lang.String fileName,
Locator base)
Creates a SerializedTopicMapSource representing a file specified by its name |
|
SerializedTopicMapSource(java.lang.String fileName,
Locator base,
TopicMapBuilder builder)
Creates a SerializedTopicMapSource representing a file identified by the given fileName |
|
SerializedTopicMapSource(java.lang.String fileName,
TopicMapBuilder builder)
Creates a SerializedTopicMapSource representing a file specified by its name. |
|
| Method Summary | |
java.lang.String |
getBaseAddress()
Returns the base address of this source. |
Locator |
getBaseLocator()
Returns the base locator for this source. |
void |
populateTopicMap(TopicMap map)
a callback method called by the TopicMapProvider implementation to populate the topic map |
void |
populateTopicMap(TopicMap map,
Topic[] addedThemes)
|
void |
populateTopicMap(TopicMap map,
TopicMapProvider provider)
A callback method called by the TopicMapProvider implementation to populate the topic map. |
void |
populateTopicMap(TopicMap map,
TopicMapProvider provider,
Topic[] addedThemes)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SerializedTopicMapSource(java.lang.String fileName)
throws java.io.FileNotFoundException,
java.net.MalformedURLException
fileName - the name of the file
java.io.FileNotFoundException - thrown if no file can be found for fileName
java.net.MalformedURLException
public SerializedTopicMapSource(java.io.File file)
throws java.io.FileNotFoundException,
java.net.MalformedURLException
file - a File containing the serialized topic map data to be parsed
java.io.FileNotFoundException - thrown if file does not exist
java.net.MalformedURLException
public SerializedTopicMapSource(java.lang.String fileName,
Locator base)
throws java.io.FileNotFoundException,
java.net.MalformedURLException
fileName - the name of the filebase - a Locator for the Source
java.io.FileNotFoundException - thrown if no file can be found for fileName
java.net.MalformedURLException
public SerializedTopicMapSource(java.io.InputStream stream,
Locator base)
stream - the InputStream used as source for the tmbase - a Locator for the Source
public SerializedTopicMapSource(java.io.Reader reader,
Locator base)
reader - the Reader used as source for the tmbase - a Locator for the Source
public SerializedTopicMapSource(java.io.File file,
Locator base)
throws java.io.FileNotFoundException
file - a File containing the serialized topic map data to be parsedbase - a Locator for the Source
java.io.FileNotFoundException - thrown if file does not exist
public SerializedTopicMapSource(java.io.File file,
TopicMapBuilder builder)
throws java.io.FileNotFoundException,
java.net.MalformedURLException
file - a File containing the serialized topic map data to be parsedbuilder - the TopicMapBuilder implementation
java.io.FileNotFoundException - thrown if file does not exist
java.net.MalformedURLException
public SerializedTopicMapSource(java.lang.String fileName,
TopicMapBuilder builder)
throws java.io.FileNotFoundException,
java.net.MalformedURLException
fileName - the name of the filebuilder - the TopicMapBuilder implementation
java.io.FileNotFoundException - thrown if file does not exist
java.net.MalformedURLException
public SerializedTopicMapSource(java.io.File file,
Locator base,
TopicMapBuilder builder)
throws java.io.FileNotFoundException
file - a File containing the serialized topic map data to be parsedbuilder - the TopicMapBuilder implementationbase - a Locator for the Source
java.io.FileNotFoundException - thrown if file does not exist
public SerializedTopicMapSource(java.io.Reader reader,
Locator base,
TopicMapBuilder builder)
Reader
reader - the Reader used as source for the tmbase - a Locator for the Sourcebuilder - the TopicMapBuilder implementation
public SerializedTopicMapSource(java.lang.String fileName,
Locator base,
TopicMapBuilder builder)
throws java.io.FileNotFoundException
fileName - the name of the filebase - a Locator for the Sourcebuilder - the TopicMapBuilder implementation
java.io.FileNotFoundException - thrown if there is no file with the given name
public SerializedTopicMapSource(java.io.InputStream stream,
Locator base,
TopicMapBuilder builder)
InputStream
stream - the InputStream which is connected to a serialized TopicMapbase - a Locator for the Sourcebuilder - the TopicMapBuilder implementation| Method Detail |
public java.lang.String getBaseAddress()
TopicMapSource
getBaseAddress in interface TopicMapSourcepublic Locator getBaseLocator()
TopicMapSource
getBaseLocator in interface TopicMapSource
public void populateTopicMap(TopicMap map)
throws TopicMapProcessingException
TopicMapSource
populateTopicMap in interface TopicMapSourcemap - the TopicMap instance to be populated
TopicMapProcessingException - if the parsing of the topic map
source fails or if during population of the topic map some
consistency constraints or XTM rules are violated.
public void populateTopicMap(TopicMap map,
Topic[] addedThemes)
throws TopicMapProcessingException
populateTopicMap in interface TopicMapSourceTopicMapProcessingException
public void populateTopicMap(TopicMap map,
TopicMapProvider provider)
throws TopicMapProcessingException
TopicMapSource
populateTopicMap in interface TopicMapSourcemap - the TopicMap instance to be populatedprovider - the TopicMapProvider instance that manages map
TopicMapProcessingException
public void populateTopicMap(TopicMap map,
TopicMapProvider provider,
Topic[] addedThemes)
throws TopicMapProcessingException
populateTopicMap in interface TopicMapSourceTopicMapProcessingException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||