public class JAXBEntityReader extends Object implements EntityReader
| Constructor and Description |
|---|
JAXBEntityReader() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
read(Class<T> targetType,
String contentType,
InputStream data)
Reads the input stream which is of the specified content type and produces an instance of the target type
|
boolean |
supports(Class<?> targetType,
String contentType)
Checks if the implementor is capable of producing instances of the target type using data of the specified contentType.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadpublic boolean supports(Class<?> targetType, String contentType)
EntityReadersupports in interface EntityReadertargetType - the requested target typecontentType - the content type as media-type string (i.e. application/json)public <T> T read(Class<T> targetType, String contentType, InputStream data)
EntityReaderread in interface EntityReadertargetType - the type to producecontentType - the content type / mimetype of the data input streamdata - the data to readCopyright © 2017–2018 DevCon5 GmbH. All rights reserved.