@Provider @Consumes(value="image/*") @Produces(value="image/*") public class IIOImageProvider extends AbstractEntityProvider<IIOImage>
| Constructor and Description |
|---|
IIOImageProvider() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
IIOImage |
readFrom(Class<IIOImage> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
InputStream entityStream) |
void |
writeTo(IIOImage t,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
getSizepublic boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
type - genericType - annotations - javax.ws.rs.ext.MessageBodyReader#isReadable(java.lang.Class,
java.lang.reflect.Type, java.lang.annotation.Annotation[])public IIOImage readFrom(Class<IIOImage> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException
type - genericType - annotations - mediaType - httpHeaders - entityStream - IOExceptionjavax.ws.rs.WebApplicationExceptionMessageBodyReader.readFrom(java.lang.Class,
java.lang.reflect.Type, java.lang.annotation.Annotation[],
javax.ws.rs.core.MediaType, javax.ws.rs.core.MultivaluedMap,
java.io.InputStream)public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
type - genericType - annotations - javax.ws.rs.ext.MessageBodyWriter#isWriteable(java.lang.Class,
java.lang.reflect.Type, java.lang.annotation.Annotation[])public void writeTo(IIOImage t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException
t - type - genericType - annotations - mediaType - httpHeaders - entityStream - IOExceptionjavax.ws.rs.WebApplicationExceptionMessageBodyWriter.writeTo(java.lang.Object,
java.lang.Class, java.lang.reflect.Type,
java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType,
javax.ws.rs.core.MultivaluedMap, java.io.OutputStream)Copyright © 2015 JBoss by Red Hat. All rights reserved.