Interface Reader<EntityType>

    • Method Detail

      • read

        EntityType read​(Class<?> clazz,
                        Type genericType,
                        javax.ws.rs.core.MediaType mediaType,
                        InputStream in)
                 throws IOException
        Read the entity from in InputStream 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