Changeset 6588
- Timestamp:
- 09/23/15 10:22: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
r6587 r6588 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 5 8 6 import javax.xml.bind.JAXBContext; … … 16 14 17 15 18 public static VariantsMap unmarshal(InputStream input)throws JAXBException , UnsupportedEncodingException{16 public static VariantsMap unmarshal(InputStream input)throws JAXBException{ 19 17 JAXBContext jc = JAXBContext.newInstance(VariantsMap.class); 20 18 Unmarshaller unmarshaller = jc.createUnmarshaller(); 21 return (VariantsMap) unmarshaller.unmarshal( (new InputStreamReader(input, "iso-8859-1")));19 return (VariantsMap) unmarshaller.unmarshal(input); 22 20 23 21 }
Note: See TracChangeset
for help on using the changeset viewer.