Esempio n. 1
0
 public Model importModel(File importFile)
     throws TransformerException, TransformerConfigurationException, FileNotFoundException,
         ParseException, LemException, IOException {
   Lem l = new Lem();
   String s = importXMI(importFile);
   return l.parse(new StringBufferInputStream(s));
 }
Esempio n. 2
0
  public Model loadModel(File modelFile)
      throws FileNotFoundException, ParseException, LemException, IOException {
    Lem l = new Lem();
    FileInputStream fis = new FileInputStream(modelFile);

    return l.parse(fis);
  }