|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ontopia.topicmaps.utils.jtm.JTMTopicMapWriter
public class JTMTopicMapWriter
PUBLIC: Exports topic maps to the JTM 1.0 interchange format. See the JTM homepage for a specification of the JTM 1.0 exchange format for topic map fragments.
| Constructor Summary | |
|---|---|
JTMTopicMapWriter(java.io.OutputStream stream)
PUBLIC: Create an JTMTopicMapWriter that writes to a given OutputStream in UTF-8. |
|
JTMTopicMapWriter(java.io.OutputStream stream,
java.lang.String encoding)
PUBLIC: Create an JTMTopicMapWriter that writes to a given OutputStream in the given encoding. |
|
JTMTopicMapWriter(java.io.Writer out)
PUBLIC: Create an JTMTopicMapWriter that writes to a given Writer. |
|
| Method Summary | |
|---|---|
void |
write(java.util.Collection<TopicIF> topics,
java.util.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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JTMTopicMapWriter(java.io.OutputStream stream)
throws java.io.IOException
stream - Where the output should be written.
java.io.IOException
public JTMTopicMapWriter(java.io.OutputStream stream,
java.lang.String encoding)
throws java.io.IOException
stream - Where the output should be written.encoding - The desired character encoding.
java.io.IOExceptionpublic JTMTopicMapWriter(java.io.Writer out)
out - Where the output should be written.| Method Detail |
|---|
public void write(TopicMapIF tm)
throws java.io.IOException
write in interface TopicMapWriterIFtm - The topic map to be serialized as JTM.
java.io.IOException - Thrown if writing the topic map fails.
public void write(TMObjectIF object)
throws java.io.IOException
object - The topic map construct to be serialized as JTM fragment.
java.io.IOException
public void write(java.util.Collection<TopicIF> topics,
java.util.Collection<AssociationIF> assocs)
throws java.io.IOException
java.io.IOException
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||