public class JTMTopicMapWriter extends Object implements TopicMapWriterIF
Constructor and Description |
---|
JTMTopicMapWriter(File file)
PUBLIC: Create an JTMTopicMapWriter that writes to a given File in
UTF-8.
|
JTMTopicMapWriter(File file,
String encoding)
PUBLIC: Create an JTMTopicMapWriter that writes to a given File in
the given encoding.
|
JTMTopicMapWriter(OutputStream stream)
PUBLIC: Create an JTMTopicMapWriter that writes to a given OutputStream in
UTF-8.
|
JTMTopicMapWriter(OutputStream stream,
String encoding)
PUBLIC: Create an JTMTopicMapWriter that writes to a given OutputStream in
the given encoding.
|
JTMTopicMapWriter(Writer out)
PUBLIC: Create an JTMTopicMapWriter that writes to a given Writer.
|
Modifier and Type | Method and Description |
---|---|
void |
setAdditionalProperties(Map<String,Object> properties)
JTMTopicMapWriter has no additional properties.
|
void |
write(Collection<TopicIF> topics,
Collection<AssociationIF> assocs)
EXPERIMENTAL: Write out a collection of topics and associations
as a JTM fragment, represented as a complete topic map.
|
void |
write(TMObjectIF object)
PUBLIC: Write the given topic map construct as a JTM fragment.
|
void |
write(TopicMapIF tm)
PUBLIC: Writes out the given topic map.
|
public JTMTopicMapWriter(File file) throws IOException
file
- Where the output should be written.IOException
public JTMTopicMapWriter(File file, String encoding) throws IOException
file
- Where the output should be written.encoding
- The desired character encoding.IOException
public JTMTopicMapWriter(OutputStream stream) throws IOException
stream
- Where the output should be written.IOException
public JTMTopicMapWriter(OutputStream stream, String encoding) throws IOException
stream
- Where the output should be written.encoding
- The desired character encoding.IOException
public JTMTopicMapWriter(Writer out)
out
- Where the output should be written.public void write(TopicMapIF tm) throws IOException
write
in interface TopicMapWriterIF
tm
- The topic map to be serialized as JTM.IOException
- Thrown if writing the topic map fails.public void write(TMObjectIF object) throws IOException
object
- The topic map construct to be serialized as JTM fragment.IOException
public void write(Collection<TopicIF> topics, Collection<AssociationIF> assocs) throws IOException
IOException
public void setAdditionalProperties(Map<String,Object> properties)
setAdditionalProperties
in interface TopicMapWriterIF
properties
-