public class XTMTopicMapFragmentWriter extends Object implements TopicMapFragmentWriterIF
Constructor and Description |
---|
XTMTopicMapFragmentWriter(OutputStream out,
String encoding) |
XTMTopicMapFragmentWriter(Writer out) |
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.
|
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.
|
public XTMTopicMapFragmentWriter(OutputStream out, String encoding) throws IOException
IOException
public XTMTopicMapFragmentWriter(Writer out) throws IOException
IOException
public void startTopicMap() throws IOException
startTopicMap
in interface TopicMapFragmentWriterIF
IOException
public void exportAll(Iterator<TopicIF> it) throws IOException
exportAll
in interface TopicMapFragmentWriterIF
IOException
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
public void setUseLocalIds(boolean use_local_ids)
public boolean getUseLocalIds()