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