use of org.openforis.collect.io.exception.CodeListImportException in project collect by openforis.
the class CodeListManager method importCodeLists.
@Transactional
public void importCodeLists(CollectSurvey survey, File file) throws CodeListImportException {
FileInputStream is = null;
try {
is = new FileInputStream(file);
importCodeLists(survey, is);
} catch (FileNotFoundException e) {
throw new CodeListImportException(e);
} finally {
IOUtils.closeQuietly(is);
}
}
Aggregations