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,DocumentModelJsonReaderLegacy,DocumentModelListJsonReader,DocumentPropertiesJsonReader,EntityJsonReader,NuxeoGroupJsonReader,NuxeoGroupListJsonReader,NuxeoOAuth2ServiceProviderReader,NuxeoOAuth2TokenReader,NuxeoPrincipalJsonReader,NuxeoPrincipalListJsonReader,OAuth2ClientReader,SavedSearchListReader,SavedSearchRequestReader,TaskCompletionRequestJsonReader,TaskCompletionRequestLegacyJsonReader,WorkflowRequestJsonReader,WorkflowRequestLegacyJsonReader
public interface Reader<EntityType> extends Marshaller<EntityType>
Interface of mimetype to Java type converter.see
Marshallerfor more details.- Since:
- 7.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EntityTyperead(Class<?> clazz, Type genericType, javax.ws.rs.core.MediaType mediaType, InputStream in)Read the entity from inInputStreamusing mediatype format.-
Methods inherited from interface org.nuxeo.ecm.core.io.registry.Marshaller
accept
-
-
-
-
Method Detail
-
read
EntityType read(Class<?> clazz, Type genericType, javax.ws.rs.core.MediaType mediaType, InputStream in) throws IOException
Read the entity from inInputStreamusing 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
-
-