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,LogEntryJsonReader,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, jakarta.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 Details
-
read
EntityType read(Class<?> clazz, Type genericType, jakarta.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
-