@Override public void save(String file, XcosDiagram from) throws Exception { LOG.entering("XcosFileType.ZCOS", "save"); XcosPackage p = new XcosPackage(new File(file)); p.setContent(from); p.store(); LOG.exiting("XcosFileType.ZCOS", "save"); }
@Override public void load(String file, XcosDiagram into) throws TransformerException, IOException, SAXException, ParserConfigurationException { LOG.entering("XcosFileType.ZCOS", "load"); XcosPackage p = new XcosPackage(new File(file)); p.setContent(into); p.load(); LOG.exiting("XcosFileType.ZCOS", "load"); }