Package net.ontopia.topicmaps.xml
Class XTM21TopicMapWriter
- java.lang.Object
-
- net.ontopia.topicmaps.xml.XTMTopicMapWriter
-
- net.ontopia.topicmaps.xml.XTM21TopicMapWriter
-
- All Implemented Interfaces:
TopicMapWriterIF
public final class XTM21TopicMapWriter extends XTMTopicMapWriter
PUBLIC: A topic map writer that can write topic maps out into the interchange syntax defined by the 2010-03-02 draft of XTM 2.1, as published at http://www.itscj.ipsj.or.jp/sc34/open/1378.htm- Since:
- 5.1.0
-
-
Field Summary
-
Fields inherited from class net.ontopia.topicmaps.xml.XTMTopicMapWriter
add_ids, export_srclocs, filter, out, PROPERTY_ADD_IDS, PROPERTY_EXPORT_SOURCE_LOCATORS, PROPERTY_FILTER, PROPERTY_VERSION, writer
-
-
Constructor Summary
Constructors Constructor Description XTM21TopicMapWriter(File file)
XTM21TopicMapWriter(File file, String encoding)
XTM21TopicMapWriter(OutputStream stream, String encoding)
XTM21TopicMapWriter(Writer writer, String encoding)
PUBLIC: Creates a writer which writes to the given writer and claims that the file is in the given encoding.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected XTMVersion
getVersion()
Returns the XTM version of the derived class.-
Methods inherited from class net.ontopia.topicmaps.xml.XTMTopicMapWriter
getAddIds, getExportSourceLocators, setAddIds, setAdditionalProperties, setExportSourceLocators, setFilter, setVersion, write
-
-
-
-
Constructor Detail
-
XTM21TopicMapWriter
public XTM21TopicMapWriter(File file) throws IOException
- Throws:
IOException
-
XTM21TopicMapWriter
public XTM21TopicMapWriter(File file, String encoding) throws IOException
- Throws:
IOException
-
XTM21TopicMapWriter
public XTM21TopicMapWriter(OutputStream stream, String encoding) throws IOException, UnsupportedEncodingException
-
XTM21TopicMapWriter
public XTM21TopicMapWriter(Writer writer, String encoding) throws IOException
PUBLIC: Creates a writer which writes to the given writer and claims that the file is in the given encoding. Warning: we do not recommend using this method, as there is no guarantee that the declared encoding and the real encoding will- Throws:
IOException
-
-
Method Detail
-
getVersion
protected XTMVersion getVersion()
Returns the XTM version of the derived class.
-
-