EntityType - The managed Java type.public interface Reader<EntityType> extends Marshaller<EntityType>
see Marshaller for more details.
| Modifier and Type | Method and Description |
|---|---|
EntityType |
read(Class<?> clazz,
Type genericType,
javax.ws.rs.core.MediaType mediaType,
InputStream in)
Read the entity from in
InputStream using mediatype format. |
acceptEntityType read(Class<?> clazz, Type genericType, javax.ws.rs.core.MediaType mediaType, InputStream in) throws IOException
InputStream using mediatype format.
This method implementation can use injected properties.
clazz - The requested marshalled class.genericType - The requested marshalled generic type.mediatype - The input mediatype.in - The input of this marshaller.IOException - If some error append while reading entity from in.Copyright © 2019 Nuxeo. All rights reserved.