net.ontopia.topicmaps.xml
Class XTMTopicMapFragmentWriter

java.lang.Object
  extended by net.ontopia.topicmaps.xml.XTMTopicMapFragmentWriter
All Implemented Interfaces:
TopicMapFragmentWriterIF

public class XTMTopicMapFragmentWriter
extends java.lang.Object
implements TopicMapFragmentWriterIF

PUBLIC: A fragment writer for XTM 1.0.

Since:
5.1.3

Constructor Summary
XTMTopicMapFragmentWriter(java.io.OutputStream out, java.lang.String encoding)
           
XTMTopicMapFragmentWriter(java.io.Writer out)
           
 
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.
 boolean getUseLocalIds()
          PUBLIC: Whether or not internal references of the form '#id' will be exported.
 void setUseLocalIds(boolean use_local_ids)
          PUBLIC: Controls whether or not internal references of the form '#id' will be exported.
 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

XTMTopicMapFragmentWriter

public XTMTopicMapFragmentWriter(java.io.OutputStream out,
                                 java.lang.String encoding)
                          throws java.io.IOException
Throws:
java.io.IOException

XTMTopicMapFragmentWriter

public XTMTopicMapFragmentWriter(java.io.Writer out)
                          throws java.io.IOException
Throws:
java.io.IOException
Method Detail

startTopicMap

public void startTopicMap()
                   throws java.io.IOException
PUBLIC: Starts the fragment.

Specified by:
startTopicMap in interface TopicMapFragmentWriterIF
Throws:
java.io.IOException

exportAll

public void exportAll(java.util.Iterator<TopicIF> it)
               throws java.io.IOException
PUBLIC: Exports all the topics returned by the iterator, and wraps them with startTopicMap() and endTopicMap() calls.

Specified by:
exportAll in interface TopicMapFragmentWriterIF
Throws:
java.io.IOException

exportTopics

public void exportTopics(java.util.Iterator<TopicIF> it)
                  throws java.io.IOException
PUBLIC: Exports all the topics returned by the iterator.

Specified by:
exportTopics in interface TopicMapFragmentWriterIF
Throws:
java.io.IOException

exportTopic

public void exportTopic(TopicIF topic)
                 throws java.io.IOException
PUBLIC: Exports the given topic.

Specified by:
exportTopic in interface TopicMapFragmentWriterIF
Throws:
java.io.IOException

endTopicMap

public void endTopicMap()
                 throws java.io.IOException
PUBLIC: Ends the fragment.

Specified by:
endTopicMap in interface TopicMapFragmentWriterIF
Throws:
java.io.IOException

setUseLocalIds

public void setUseLocalIds(boolean use_local_ids)
PUBLIC: Controls whether or not internal references of the form '#id' will be exported.

Since:
5.2.0

getUseLocalIds

public boolean getUseLocalIds()
PUBLIC: Whether or not internal references of the form '#id' will be exported.

Since:
5.2.0


Copyright © 2000-2012 Ontopia.