public class RDFFragmentExporter extends Object implements TopicMapFragmentWriterIF
Constructor and Description |
---|
RDFFragmentExporter(OutputStream out,
String encoding) |
Modifier and Type | Method and Description |
---|---|
void |
endTopicMap()
PUBLIC: Ends the fragment.
|
void |
exportAll(Iterator<TopicIF> it)
PUBLIC: Exports all the topics returned by the iterator, and
wraps them with startTopicMap() and endTopicMap() calls.
|
void |
exportTopic(TopicIF topic)
PUBLIC: Exports the given topic.
|
void |
exportTopics(Iterator<TopicIF> it)
PUBLIC: Exports all the topics returned by the iterator.
|
void |
startTopicMap()
PUBLIC: Starts the fragment.
|
public RDFFragmentExporter(OutputStream out, String encoding)
public void exportAll(Iterator<TopicIF> it) throws IOException
exportAll
in interface TopicMapFragmentWriterIF
IOException
public void startTopicMap()
startTopicMap
in interface TopicMapFragmentWriterIF
public void exportTopics(Iterator<TopicIF> it) throws IOException
exportTopics
in interface TopicMapFragmentWriterIF
IOException
public void exportTopic(TopicIF topic) throws IOException
exportTopic
in interface TopicMapFragmentWriterIF
IOException
public void endTopicMap() throws IOException
endTopicMap
in interface TopicMapFragmentWriterIF
IOException