public interface EntityReader
| Modifier and Type | Method and Description |
|---|---|
default <T> T |
read(Class<T> targetType,
String contentType,
byte[] data) |
<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.
|
boolean supports(Class<?> targetType, String contentType)
targetType - the requested target typecontentType - the content type as media-type string (i.e. application/json)<T> T read(Class<T> targetType, String contentType, InputStream data)
T - targetType - the type to producecontentType - the content type / mimetype of the data input streamdata - the data to readCopyright © 2017–2018 DevCon5 GmbH. All rights reserved.