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
IOExceptionpublic XTMTopicMapFragmentWriter(Writer out) throws IOException
IOExceptionpublic void startTopicMap()
throws IOException
startTopicMap in interface TopicMapFragmentWriterIFIOExceptionpublic void exportAll(Iterator<TopicIF> it) throws IOException
exportAll in interface TopicMapFragmentWriterIFIOExceptionpublic void exportTopics(Iterator<TopicIF> it) throws IOException
exportTopics in interface TopicMapFragmentWriterIFIOExceptionpublic void exportTopic(TopicIF topic) throws IOException
exportTopic in interface TopicMapFragmentWriterIFIOExceptionpublic void endTopicMap()
throws IOException
endTopicMap in interface TopicMapFragmentWriterIFIOExceptionpublic void setUseLocalIds(boolean use_local_ids)
public boolean getUseLocalIds()