org.resteasy.plugins.providers
Class InputStreamProvider

java.lang.Object
  extended by org.resteasy.plugins.providers.InputStreamProvider
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<java.io.InputStream>, javax.ws.rs.ext.MessageBodyWriter<java.io.InputStream>

@Provider
public class InputStreamProvider
extends java.lang.Object
implements javax.ws.rs.ext.MessageBodyReader<java.io.InputStream>, javax.ws.rs.ext.MessageBodyWriter<java.io.InputStream>

Version:
$Revision: 1 $
Author:
Bill Burke

Constructor Summary
InputStreamProvider()
           
 
Method Summary
 long getSize(java.io.InputStream inputStream)
           
 boolean isReadable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations)
           
 boolean isWriteable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations)
           
 java.io.InputStream readFrom(java.lang.Class<java.io.InputStream> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> httpHeaders, java.io.InputStream entityStream)
           
 void writeTo(java.io.InputStream inputStream, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders, java.io.OutputStream entityStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputStreamProvider

public InputStreamProvider()
Method Detail

isReadable

public boolean isReadable(java.lang.Class<?> type,
                          java.lang.reflect.Type genericType,
                          java.lang.annotation.Annotation[] annotations)
Specified by:
isReadable in interface javax.ws.rs.ext.MessageBodyReader<java.io.InputStream>

readFrom

public java.io.InputStream readFrom(java.lang.Class<java.io.InputStream> type,
                                    java.lang.reflect.Type genericType,
                                    java.lang.annotation.Annotation[] annotations,
                                    javax.ws.rs.core.MediaType mediaType,
                                    javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> httpHeaders,
                                    java.io.InputStream entityStream)
                             throws java.io.IOException
Specified by:
readFrom in interface javax.ws.rs.ext.MessageBodyReader<java.io.InputStream>
Throws:
java.io.IOException

isWriteable

public boolean isWriteable(java.lang.Class<?> type,
                           java.lang.reflect.Type genericType,
                           java.lang.annotation.Annotation[] annotations)
Specified by:
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<java.io.InputStream>

getSize

public long getSize(java.io.InputStream inputStream)
Specified by:
getSize in interface javax.ws.rs.ext.MessageBodyWriter<java.io.InputStream>

writeTo

public void writeTo(java.io.InputStream inputStream,
                    java.lang.Class<?> type,
                    java.lang.reflect.Type genericType,
                    java.lang.annotation.Annotation[] annotations,
                    javax.ws.rs.core.MediaType mediaType,
                    javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders,
                    java.io.OutputStream entityStream)
             throws java.io.IOException
Specified by:
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<java.io.InputStream>
Throws:
java.io.IOException


Copyright © 2008. All Rights Reserved.