|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.topicmaps.utils.rdf.RDFFragmentExporter
public class RDFFragmentExporter
PUBLIC: An RDF fragment exporter which produces RDF/XML. It does so by first building an in-memory Jena model of the fragment, then serializing the entire thing in one go to the stream. The exporter is restricted in the sense that all topics must come from the same topic map.
Constructor Summary | |
---|---|
RDFFragmentExporter(java.io.OutputStream out,
java.lang.String encoding)
|
Method Summary | |
---|---|
void |
endTopicMap()
PUBLIC: Ends the fragment. |
void |
exportAll(java.util.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(java.util.Iterator<TopicIF> it)
PUBLIC: Exports all the topics returned by the iterator. |
void |
startTopicMap()
PUBLIC: Starts the fragment. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RDFFragmentExporter(java.io.OutputStream out, java.lang.String encoding)
Method Detail |
---|
public void exportAll(java.util.Iterator<TopicIF> it) throws java.io.IOException
exportAll
in interface TopicMapFragmentWriterIF
java.io.IOException
public void startTopicMap()
startTopicMap
in interface TopicMapFragmentWriterIF
public void exportTopics(java.util.Iterator<TopicIF> it) throws java.io.IOException
exportTopics
in interface TopicMapFragmentWriterIF
java.io.IOException
public void exportTopic(TopicIF topic) throws java.io.IOException
exportTopic
in interface TopicMapFragmentWriterIF
java.io.IOException
public void endTopicMap() throws java.io.IOException
endTopicMap
in interface TopicMapFragmentWriterIF
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |