Changeset 6600
- Timestamp:
- 09/25/15 15:17:47 (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
r6599 r6600 2 2 3 3 import java.io.InputStream; 4 import java.io.InputStreamReader; 4 5 import java.io.OutputStream; 6 import java.io.UnsupportedEncodingException; 5 7 6 8 import javax.xml.bind.JAXBContext; … … 14 16 15 17 16 public static VariantsMap unmarshal(InputStream input)throws JAXBException {18 public static VariantsMap unmarshal(InputStream input)throws JAXBException, UnsupportedEncodingException{ 17 19 JAXBContext jc = JAXBContext.newInstance(VariantsMap.class); 18 20 Unmarshaller unmarshaller = jc.createUnmarshaller(); 21 InputStreamReader isr = new InputStreamReader(input, "UTF-8"); 19 22 return (VariantsMap) unmarshaller.unmarshal(input); 20 23
Note: See TracChangeset
for help on using the changeset viewer.