Changeset 6596


Ignore:
Timestamp:
09/25/15 15:07:00 (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

    r6594 r6596  
    11package eu.clarin.cmdi.vlo.importer;
    22
    3 import java.io.File;
    4 import java.io.FileInputStream;
    53import java.io.InputStream;
    64import java.util.Map;
     
    4543                    // load records from file
    4644                        // 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);
    4747                       
    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);                     
    5249             } catch (Exception e) {
    5350            throw new RuntimeException("Cannot instantiate postProcessor:", e);
Note: See TracChangeset for help on using the changeset viewer.