Changeset 6594
- Timestamp:
- 09/25/15 15:00:51 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vlo/branches/vlo-3.3-oeaw/vlo-importer/src/main/java/eu/clarin/cmdi/vlo/importer/PostProcessorsWithVocabularyMap.java
r6584 r6594 1 1 package eu.clarin.cmdi.vlo.importer; 2 2 3 import java.io.File; 4 import java.io.FileInputStream; 3 5 import java.io.InputStream; 4 6 import java.util.Map; … … 42 44 LOG.info("Reading vocabulary file from: {}", mapUrl); 43 45 // load records from file 44 // in the future this should be loaded from CLAVAS directly and the file only used as fallback 45 InputStream is = PostProcessorsWithVocabularyMap.class.getClassLoader().getResourceAsStream(mapUrl); 46 return VariantsMapMarshaller.unmarshal(is); 46 // in the future this should be loaded from CLAVAS directly and the file only used as fallback 47 48 File map = new File(PostProcessorsWithVocabularyMap.class.getClassLoader().getResource(mapUrl).toURI()); 49 50 return VariantsMapMarshaller.unmarshal(new FileInputStream(map)); 51 47 52 } catch (Exception e) { 48 53 throw new RuntimeException("Cannot instantiate postProcessor:", e);
Note: See TracChangeset
for help on using the changeset viewer.