Changeset 6594


Ignore:
Timestamp:
09/25/15 15:00:51 (9 years ago)
Author:
davor.ostojic@oeaw.ac.at
Message:
 
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  
    11package eu.clarin.cmdi.vlo.importer;
    22
     3import java.io.File;
     4import java.io.FileInputStream;
    35import java.io.InputStream;
    46import java.util.Map;
     
    4244                        LOG.info("Reading vocabulary file from: {}", mapUrl);
    4345                    // 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                       
    4752             } catch (Exception e) {
    4853            throw new RuntimeException("Cannot instantiate postProcessor:", e);
Note: See TracChangeset for help on using the changeset viewer.