Importing Compact Topic Maps Syntax (CTM)ΒΆ

The org.tmapix.io.CTMTopicMapReader is used to import topic maps encoded in CTM.

Usage of the CTMTopicMapReader:

import org.tmapix.io.TopicMapReader;
import org.tmapix.io.CTMTopicMapReader;

// ``tm`` is an instance of org.tmapi.core.TopicMap

File source = new File("./mymap.ctm");
TopicMapReader reader = new CTMTopicMapReader(tm, source);
reader.read();