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