Read a XTM Topic Map


// TopicMap to read in is tm

String fileName = "topic-map.xtm";

try {
  
  XTMParser xtmP = new XTMParser(tm);

  FileInputStream is = new FileInputStream(fileName);

  xtmP.parse(is);
}

catch(TMAPIException tmae){
  System.err.println("TMAPI Error");
}

catch (FileNotFoundException fnfe) {
  System.err.println("File not found");
}

catch (SecurityException se) {
  System.err.println("No Permissions");
}