org.jboss.resteasy.plugins.providers
Class IIOImageProvider
java.lang.Object
org.jboss.resteasy.plugins.providers.AbstractEntityProvider<IIOImage>
org.jboss.resteasy.plugins.providers.IIOImageProvider
- All Implemented Interfaces:
- javax.ws.rs.ext.MessageBodyReader<IIOImage>, javax.ws.rs.ext.MessageBodyWriter<IIOImage>
@Provider
public class IIOImageProvider
- extends AbstractEntityProvider<IIOImage>
- Version:
- $Revision:$
- Author:
- Ryan J. McDonough
Method Summary |
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IIOImageProvider
public IIOImageProvider()
isReadable
public boolean isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
- Parameters:
type
- genericType
- annotations
-
- Returns:
- See Also:
javax.ws.rs.ext.MessageBodyReader#isReadable(java.lang.Class,
java.lang.reflect.Type, java.lang.annotation.Annotation[])
readFrom
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
- Parameters:
type
- genericType
- annotations
- mediaType
- httpHeaders
- entityStream
-
- Returns:
-
- Throws:
IOException
javax.ws.rs.WebApplicationException
- See Also:
MessageBodyReader.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)
isWriteable
public boolean isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
- Parameters:
type
- genericType
- annotations
-
- Returns:
- See Also:
javax.ws.rs.ext.MessageBodyWriter#isWriteable(java.lang.Class,
java.lang.reflect.Type, java.lang.annotation.Annotation[])
writeTo
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
- Parameters:
t
- type
- genericType
- annotations
- mediaType
- httpHeaders
- entityStream
-
- Throws:
IOException
javax.ws.rs.WebApplicationException
- See Also:
MessageBodyWriter.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 © 2013 JBoss by Red Hat. All Rights Reserved.