private void saveLog(final IGeoLog log, final File logFile) { try { final IStatusCollection statusCollection = log.getStatusCollection(); final GMLWorkspace workspace = statusCollection.getWorkspace(); GmlSerializer.serializeWorkspace(logFile, workspace, Charsets.UTF_8.name()); } catch (IOException | GmlSerializeException e) { e.printStackTrace(); } }
void saveModel(final String path, final Feature model) throws IOException, GmlSerializeException { /* REMARK: We assume that all files are 'UTF-8'. */ GmlSerializer.serializeWorkspace( new File(m_baseDir, path), model.getWorkspace(), "UTF-8"); // $NON-NLS-1$ }