Class XTM2TopicMapExporter

java.lang.Object
net.ontopia.topicmaps.xml.AbstractTopicMapExporter
net.ontopia.topicmaps.xml.XTM2TopicMapExporter

public class XTM2TopicMapExporter extends AbstractTopicMapExporter
INTERNAL: Exports topic maps to the XTM 2.0 or 2.1 interchange format.
  • Field Details

  • Constructor Details

    • XTM2TopicMapExporter

      public XTM2TopicMapExporter()
    • XTM2TopicMapExporter

      public XTM2TopicMapExporter(boolean xtm21)
      EXPERIMENTAL: XTM 2.0 or XTM 2.1 output.
      Parameters:
      xtm21 - true to enable XTM 2.1, otherwise XTM 2.0 will be written.
  • Method Details

    • setExportItemIdentifiers

      public void setExportItemIdentifiers(boolean export_itemids)
    • export

      public void export(TopicMapIF tm) throws SAXException, IOException
      INTERNAL: Default export method. An XML pretty printer is used and the output is written to stdout.
      Throws:
      SAXException
      IOException
    • export

      public void export(TopicMapIF tm, ContentHandler dh) throws SAXException
      INTERNAL: Traverses a Topic Map and emits SAX document handler events according to the Topic Map interchange format to the given document handler.
      Throws:
      SAXException