Package org.nuxeo.ecm.core.io.registry
Interface Reader<EntityType>
- Type Parameters:
EntityType
- The managed Java type.
- All Superinterfaces:
Marshaller<EntityType>
- All Known Implementing Classes:
AbstractJsonReader
,AnnotationJsonReader
,AnnotationListJsonReader
,BlobJsonReader
,BulkCommandJsonReader
,BulkStatusJsonReader
,CommentJsonReader
,CommentListJsonReader
,DefaultListJsonReader
,DirectoryEntryJsonReader
,DirectoryEntryListJsonReader
,DocumentModelJsonReader
,DocumentModelListJsonReader
,DocumentPropertiesJsonReader
,EntityJsonReader
,NuxeoGroupJsonReader
,NuxeoGroupListJsonReader
,NuxeoOAuth2ServiceProviderReader
,NuxeoOAuth2TokenReader
,NuxeoPrincipalJsonReader
,NuxeoPrincipalListJsonReader
,OAuth2ClientReader
,SavedSearchListReader
,SavedSearchRequestReader
,ScimResourceReader
,TaskCompletionRequestJsonReader
,WorkflowRequestJsonReader
Interface of mimetype to Java type converter.
see Marshaller
for more details.
- Since:
- 7.2
-
Method Summary
Modifier and TypeMethodDescriptionread
(Class<?> clazz, Type genericType, javax.ws.rs.core.MediaType mediaType, InputStream in) Read the entity from inInputStream
using mediatype format.Methods inherited from interface org.nuxeo.ecm.core.io.registry.Marshaller
accept
-
Method Details
-
read
EntityType read(Class<?> clazz, Type genericType, javax.ws.rs.core.MediaType mediaType, InputStream in) throws IOException Read the entity from inInputStream
using mediatype format.This method implementation can use injected properties.
- Parameters:
clazz
- The requested marshalled class.genericType
- The requested marshalled generic type.mediaType
- The input media type.in
- The input of this marshaller.- Throws:
IOException
- If some error append while reading entity from in.- Since:
- 7.2
-