Package net.ontopia.topicmaps.xml
Class CanonicalXTMWriter
java.lang.Object
net.ontopia.topicmaps.xml.CanonicalXTMWriter
- All Implemented Interfaces:
TopicMapWriterIF
PUBLIC: A topic map writer that writes topic maps out to the format
defined in ISO 13250-4: Topic Maps -- Canonicalization. The format
is also known as Canonical XTM, but should not be confused with
that defined by Ontopia. The current implementation conforms to the
final standard (ISO 13250-4:2009).
- Since:
- 2.0.3
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCanonicalXTMWriter(File file) CanonicalXTMWriter(Writer out) PUBLIC: Creates a canonicalizer that writes to the given Writer in whatever encoding that Writer uses. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetAdditionalProperties(Map<String, Object> properties) CanonicalXTMWriter has no additional properties.voidwrite(TopicMapIF topicmap) PUBLIC: Writes the given topic map to an implicit implementation dependent destination.
-
Constructor Details
-
CanonicalXTMWriter
- Throws:
IOException
-
CanonicalXTMWriter
-
CanonicalXTMWriter
PUBLIC: Creates a canonicalizer that writes to the given Writer in whatever encoding that Writer uses. Warning: Canonical XTM requires the output encoding to be UTF-8, so for correct results the given Writer must produce UTF-8. Using this method is not recommended.
-
-
Method Details
-
write
Description copied from interface:TopicMapWriterIFPUBLIC: Writes the given topic map to an implicit implementation dependent destination. The write method will close any resources opened internally. This means that the write method can only be called once if the stream/writer was opened internally.- Specified by:
writein interfaceTopicMapWriterIF- Parameters:
topicmap- The topic map to be exported/written; an object implementing TopicMapIF
-
setAdditionalProperties
CanonicalXTMWriter has no additional properties.- Specified by:
setAdditionalPropertiesin interfaceTopicMapWriterIF- Parameters:
properties-
-