Changeset 6600


Ignore:
Timestamp:
09/25/15 15:17:47 (9 years ago)
Author:
davor.ostojic@oeaw.ac.at
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • vlo/branches/vlo-3.3-oeaw/vlo-vocabularies/src/main/java/eu/clarin/cmdi/vlo/transformers/VariantsMapMarshaller.java

    r6599 r6600  
    22
    33import java.io.InputStream;
     4import java.io.InputStreamReader;
    45import java.io.OutputStream;
     6import java.io.UnsupportedEncodingException;
    57
    68import javax.xml.bind.JAXBContext;
     
    1416       
    1517       
    16     public static VariantsMap unmarshal(InputStream input)throws JAXBException{
     18    public static VariantsMap unmarshal(InputStream input)throws JAXBException, UnsupportedEncodingException{
    1719        JAXBContext jc = JAXBContext.newInstance(VariantsMap.class);
    1820        Unmarshaller unmarshaller = jc.createUnmarshaller();
     21        InputStreamReader isr = new InputStreamReader(input, "UTF-8");
    1922        return (VariantsMap) unmarshaller.unmarshal(input);       
    2023       
Note: See TracChangeset for help on using the changeset viewer.