Interface Writer<EntityType>

    • Method Detail

      • write

        void write​(EntityType entity,
                   Class<?> clazz,
                   Type genericType,
                   javax.ws.rs.core.MediaType mediatype,
                   OutputStream out)
            throws IOException
        Writes the entity to out OutputStream using mediatype format.

        This method implementation can use injected properties.

        Parameters:
        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.
        Throws:
        IOException - If some error append while writing entity to out.
        Since:
        7.2