Changeset 6604


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

    r6603 r6604  
    22
    33import java.io.InputStream;
     4import java.io.InputStreamReader;
    45import java.io.OutputStream;
     6import java.io.UnsupportedEncodingException;
     7import java.nio.charset.StandardCharsets;
    58
    69import javax.xml.bind.JAXBContext;
     
    1417       
    1518       
    16     public static VariantsMap unmarshal(InputStream input)throws JAXBException{
     19    public static VariantsMap unmarshal(InputStream input)throws JAXBException, UnsupportedEncodingException{
    1720        JAXBContext jc = JAXBContext.newInstance(VariantsMap.class);
    1821        Unmarshaller unmarshaller = jc.createUnmarshaller();
    19         return (VariantsMap) unmarshaller.unmarshal(input);       
     22        InputStreamReader isr = new InputStreamReader(input, StandardCharsets.ISO_8859_1);
     23        return (VariantsMap) unmarshaller.unmarshal(isr);       
    2024       
    2125    }
Note: See TracChangeset for help on using the changeset viewer.