Changeset 6603


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

    r6602 r6603  
    22
    33import java.io.InputStream;
    4 import java.io.InputStreamReader;
    54import java.io.OutputStream;
    6 import java.io.UnsupportedEncodingException;
    7 import java.nio.charset.StandardCharsets;
    85
    96import javax.xml.bind.JAXBContext;
     
    1714       
    1815       
    19     public static VariantsMap unmarshal(InputStream input)throws JAXBException, UnsupportedEncodingException{
     16    public static VariantsMap unmarshal(InputStream input)throws JAXBException{
    2017        JAXBContext jc = JAXBContext.newInstance(VariantsMap.class);
    2118        Unmarshaller unmarshaller = jc.createUnmarshaller();
    22         InputStreamReader isr = new InputStreamReader(input, "utf-8");//for some reason utf-8 works but UTF-8 (official value) doesn't
    23         return (VariantsMap) unmarshaller.unmarshal(isr);       
     19        return (VariantsMap) unmarshaller.unmarshal(input);       
    2420       
    2521    }
Note: See TracChangeset for help on using the changeset viewer.