EntityType - The managed Java type.public interface Writer<EntityType> extends Marshaller<EntityType>
 see Marshaller for more details.
 
| Modifier and Type | Method and Description | 
|---|---|
void | 
write(EntityType entity,
     Class<?> clazz,
     Type genericType,
     javax.ws.rs.core.MediaType mediatype,
     OutputStream out)
Writes the entity to out  
OutputStream using mediatype format. | 
acceptvoid write(EntityType entity, Class<?> clazz, Type genericType, javax.ws.rs.core.MediaType mediatype, OutputStream out) throws IOException
OutputStream using mediatype format.
 This method implementation can use injected properties.
entity - The entity to marshall.clazz - The requested marshalled class.genericType - The requested marshalled generic type.mediatype - The target mediatype.out - The output of this marshaller.IOException - If some error append while writing entity to out.Copyright © 2019 Nuxeo. All rights reserved.