net.ontopia.topicmaps.xml
Class XTM2TopicMapWriter

java.lang.Object
  extended by net.ontopia.topicmaps.xml.XTMTopicMapWriter
      extended by net.ontopia.topicmaps.xml.XTM2TopicMapWriter
All Implemented Interfaces:
TopicMapWriterIF

public class XTM2TopicMapWriter
extends XTMTopicMapWriter

PUBLIC: A topic map writer that can write topic maps out into the interchange syntax defined by XTM 2.0.

Since:
4.0

Constructor Summary
XTM2TopicMapWriter(java.io.File file)
          PUBLIC: Creates a topic map writer bound to the file given in the arguments.
XTM2TopicMapWriter(java.io.File file, java.lang.String encoding)
          PUBLIC: Creates a topic map writer bound to the file given in the arguments.
XTM2TopicMapWriter(java.io.OutputStream stream, java.lang.String encoding)
          PUBLIC: Creates a topic map writer bound to the output stream given in the arguments.
XTM2TopicMapWriter(java.lang.String filename)
          PUBLIC: Creates a topic map writer bound to the file given in the arguments.
XTM2TopicMapWriter(java.io.Writer writer, java.lang.String encoding)
          PUBLIC: Creates a topic map writer bound to the Writer given in the arguments; we do not recommend the use of this method.
 
Method Summary
 
Methods inherited from class net.ontopia.topicmaps.xml.XTMTopicMapWriter
getAddIds, getExportSourceLocators, setAddIds, setExportSourceLocators, setFilter, setVersion, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XTM2TopicMapWriter

public XTM2TopicMapWriter(java.lang.String filename)
                   throws java.io.IOException
PUBLIC: Creates a topic map writer bound to the file given in the arguments. The topic map will be written out in the UTF-8 encoding.

Parameters:
filename - The name of the file to which the topic map is to be written.
Throws:
java.io.IOException

XTM2TopicMapWriter

public XTM2TopicMapWriter(java.io.File file)
                   throws java.io.IOException
PUBLIC: Creates a topic map writer bound to the file given in the arguments. The topic map will be written out in the UTF-8 encoding.

Parameters:
file - The file object to which the topic map is to be written.
Throws:
java.io.IOException

XTM2TopicMapWriter

public XTM2TopicMapWriter(java.io.File file,
                          java.lang.String encoding)
                   throws java.io.IOException
PUBLIC: Creates a topic map writer bound to the file given in the arguments.

Parameters:
file - The file object to which the topic map is to be written.
encoding - The character encoding to write the topic map in.
Throws:
java.io.IOException

XTM2TopicMapWriter

public XTM2TopicMapWriter(java.io.OutputStream stream,
                          java.lang.String encoding)
                   throws java.io.IOException,
                          java.io.UnsupportedEncodingException
PUBLIC: Creates a topic map writer bound to the output stream given in the arguments.

Parameters:
stream - The output stream to which the topic map is to be written.
encoding - The character encoding to write the topic map in.
Throws:
java.io.UnsupportedEncodingException - Thrown when the character encoding is not supported by the Java environment.
java.io.IOException

XTM2TopicMapWriter

public XTM2TopicMapWriter(java.io.Writer writer,
                          java.lang.String encoding)
                   throws java.io.IOException
PUBLIC: Creates a topic map writer bound to the Writer given in the arguments; we do not recommend the use of this method.

Parameters:
writer - The Writer to which the topic map is to be written.
encoding - The character encoding the Writer writes in. Note that this must be set correctly, or the XML document will not parse correctly.
Throws:
java.io.IOException


Copyright © 2000-2009 Ontopia.