|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ontopia.topicmaps.xml.XTMTopicMapWriter
net.ontopia.topicmaps.xml.XTM2TopicMapWriter
public class XTM2TopicMapWriter
PUBLIC: A topic map writer that can write topic maps out into the interchange syntax defined by XTM 2.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 |
---|
public XTM2TopicMapWriter(java.lang.String filename) throws java.io.IOException
filename
- The name of the file to which the topic map is to
be written.
java.io.IOException
public XTM2TopicMapWriter(java.io.File file) throws java.io.IOException
file
- The file object to which the topic map is to be written.
java.io.IOException
public XTM2TopicMapWriter(java.io.File file, java.lang.String encoding) throws java.io.IOException
file
- The file object to which the topic map is to be written.encoding
- The character encoding to write the topic map in.
java.io.IOException
public XTM2TopicMapWriter(java.io.OutputStream stream, java.lang.String encoding) throws java.io.IOException, java.io.UnsupportedEncodingException
stream
- The output stream to which the topic map is to be
written.encoding
- The character encoding to write the topic map in.
java.io.UnsupportedEncodingException
- Thrown when the character
encoding is not supported by the Java environment.
java.io.IOException
public XTM2TopicMapWriter(java.io.Writer writer, java.lang.String encoding) throws java.io.IOException
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.
java.io.IOException
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |