class TMXMLWriter extends AbstractTopicMapExporter implements TopicMapWriterIF {

  @Override
  public void write(TopicMapIF topicmap) throws IOException {
    try {
      gatherPrefixes(topicmap.getTopics());
      startTopicMap(topicmap);
      writeTopics(filterCollection(topicmap.getTopics()));
      endTopicMap();
      close();      
    } catch (SAXException e) {
      throw new OntopiaRuntimeException(e);
    }
  }

  public  TMXMLWriter(Writer out);
  public  TMXMLWriter(Writer out, String encoding);
  public  TMXMLWriter(File out);
  public  TMXMLWriter(File out, String encoding);
  public  TMXMLWriter(OutputStream out, String encoding);
  public  TMXMLWriter(ContentHandler out);

}