@Produces(value="image/*") @Consumes(value={"image/*","application/octet-stream"}) @Singleton public final class RenderedImageProvider extends AbstractMessageReaderWriterProvider<RenderedImage>
image/*, application/x-www-form-urlencoded entity types to
 rendered and from rendered or
 buffered image instance.UTF8| Constructor and Description | 
|---|
| RenderedImageProvider() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | isReadable(Class<?> type,
          Type genericType,
          Annotation[] annotations,
          MediaType mediaType) | 
| boolean | isWriteable(Class<?> type,
           Type genericType,
           Annotation[] annotations,
           MediaType mediaType) | 
| RenderedImage | readFrom(Class<RenderedImage> type,
        Type genericType,
        Annotation[] annotations,
        MediaType mediaType,
        MultivaluedMap<String,String> httpHeaders,
        InputStream entityStream) | 
| void | writeTo(RenderedImage t,
       Class<?> type,
       Type genericType,
       Annotation[] annotations,
       MediaType mediaType,
       MultivaluedMap<String,Object> httpHeaders,
       OutputStream entityStream) | 
getCharset, getSize, readFromAsString, writeTo, writeTo, writeToAsStringpublic boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
public RenderedImage readFrom(Class<RenderedImage> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException
IOExceptionpublic boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
public void writeTo(RenderedImage t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException
IOExceptionCopyright © 2007-2024,Oracleand/or its affiliates.All Rights Reserved. Use is subject to license terms.