Changeset 6603
- Timestamp:
- 09/25/15 15:49:11 (9 years ago)
- 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 2 2 3 3 import java.io.InputStream; 4 import java.io.InputStreamReader;5 4 import java.io.OutputStream; 6 import java.io.UnsupportedEncodingException;7 import java.nio.charset.StandardCharsets;8 5 9 6 import javax.xml.bind.JAXBContext; … … 17 14 18 15 19 public static VariantsMap unmarshal(InputStream input)throws JAXBException , UnsupportedEncodingException{16 public static VariantsMap unmarshal(InputStream input)throws JAXBException{ 20 17 JAXBContext jc = JAXBContext.newInstance(VariantsMap.class); 21 18 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); 24 20 25 21 }
Note: See TracChangeset
for help on using the changeset viewer.