Changeset 6596
- Timestamp:
- 09/25/15 15:07:00 (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
r6594 r6596 1 1 package eu.clarin.cmdi.vlo.importer; 2 2 3 import java.io.File;4 import java.io.FileInputStream;5 3 import java.io.InputStream; 6 4 import java.util.Map; … … 45 43 // load records from file 46 44 // in the future this should be loaded from CLAVAS directly and the file only used as fallback 45 46 InputStream is = PostProcessorsWithVocabularyMap.class.getClassLoader().getResourceAsStream(mapUrl); 47 47 48 File map = new File(PostProcessorsWithVocabularyMap.class.getClassLoader().getResource(mapUrl).toURI()); 49 50 return VariantsMapMarshaller.unmarshal(new FileInputStream(map)); 51 48 return VariantsMapMarshaller.unmarshal(is); 52 49 } catch (Exception e) { 53 50 throw new RuntimeException("Cannot instantiate postProcessor:", e);
Note: See TracChangeset
for help on using the changeset viewer.