|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ontopia.topicmaps.utils.ltm.LTMTopicMapWriter
public class LTMTopicMapWriter
PUBLIC: Exports topic maps to the LTM 1.3 interchange format.
Field Summary | |
---|---|
protected Comparator |
associationComparator
|
protected String |
base
|
protected Comparator |
baseNameComparator
|
protected Calendar |
calendar
|
protected Comparator |
elementIdComparator
|
protected String |
encoding
|
protected DeciderIF |
filter
|
protected String |
groupString1
|
protected net.ontopia.topicmaps.utils.ltm.LTMTopicMapWriter.IdManager |
idManager
|
protected Comparator |
occurrenceComparator
|
protected Writer |
out
|
protected boolean |
preserveIds
|
protected Comparator |
reifierComparator
|
protected Comparator |
roleComparator
|
protected Map |
roleCounter
|
protected Map |
rolesCounted
|
protected Comparator |
scopeComparator
|
protected Comparator |
supersubComparator
|
protected Comparator |
supersubRoleComparator
|
protected Comparator |
topicComparator
|
protected Comparator |
variantComparator
|
Constructor Summary | |
---|---|
LTMTopicMapWriter(OutputStream stream)
PUBLIC: Create an LTMTopicMapWriter that writes to a given OutputStream in UTF-8. |
|
LTMTopicMapWriter(OutputStream stream,
String encoding)
PUBLIC: Create an LTMTopicMapWriter that writes to a given OutputStream in the given encoding. |
|
LTMTopicMapWriter(Writer out)
Deprecated. |
|
LTMTopicMapWriter(Writer out,
String encoding)
PUBLIC: Create an LTMTopicMapWriter that writes to a given Writer. |
Method Summary | |
---|---|
void |
setFilter(DeciderIF filter)
PUBLIC: Sets the filter that decides which topic map constructs are accepted in the exprted ltm. |
void |
setPreserveIds(boolean preserveIds)
PUBLIC: Set whether IDs should be preserved or generated. |
void |
write(TopicMapIF tm)
PUBLIC: Writes out the given topic map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String encoding
protected boolean preserveIds
protected Map roleCounter
protected Map rolesCounted
protected Writer out
protected Calendar calendar
protected String base
protected DeciderIF filter
protected Comparator associationComparator
protected Comparator baseNameComparator
protected Comparator elementIdComparator
protected Comparator supersubComparator
protected Comparator supersubRoleComparator
protected Comparator occurrenceComparator
protected Comparator reifierComparator
protected Comparator roleComparator
protected Comparator scopeComparator
protected Comparator topicComparator
protected Comparator variantComparator
protected net.ontopia.topicmaps.utils.ltm.LTMTopicMapWriter.IdManager idManager
protected String groupString1
Constructor Detail |
---|
public LTMTopicMapWriter(OutputStream stream) throws IOException
stream
- Where the output should be written.
IOException
public LTMTopicMapWriter(OutputStream stream, String encoding) throws IOException
stream
- Where the output should be written.encoding
- The desired character encoding.
IOException
public LTMTopicMapWriter(Writer out)
out
- Where the output should be written.public LTMTopicMapWriter(Writer out, String encoding)
out
- Where the output should be written.encoding
- The encoding used by the writer. This is the encoding
that will be declared on the first line of the LTM file. It must be
reported, because there is no way for the LTMTopicMapWriter to know
what encoding the writer uses.Method Detail |
---|
public void setPreserveIds(boolean preserveIds)
preserveIds
- Should be set to true if IDs should be preserved.public void setFilter(DeciderIF filter)
filter
- Places constraints on individual topicmap constructs.public void write(TopicMapIF tm) throws IOException
write
in interface TopicMapWriterIF
tm
- The topic map to be exported/written;
an object implementing TopicMapIF
IOException
- Thrown if writing the topic map fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |