com.sun.jersey.core.impl.provider.entity
Class StreamingOutputProvider

java.lang.Object
  extended by com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<javax.ws.rs.core.StreamingOutput>

public final class StreamingOutputProvider
extends Object
implements javax.ws.rs.ext.MessageBodyWriter<javax.ws.rs.core.StreamingOutput>

Author:
Paul.Sandoz@Sun.Com

Constructor Summary
StreamingOutputProvider()
           
 
Method Summary
 long getSize(javax.ws.rs.core.StreamingOutput o, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
           
 boolean isWriteable(Class<?> t, Type gt, Annotation[] as, javax.ws.rs.core.MediaType mediaType)
           
 void writeTo(javax.ws.rs.core.StreamingOutput o, Class<?> t, Type gt, Annotation[] as, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamingOutputProvider

public StreamingOutputProvider()
Method Detail

isWriteable

public boolean isWriteable(Class<?> t,
                           Type gt,
                           Annotation[] as,
                           javax.ws.rs.core.MediaType mediaType)
Specified by:
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<javax.ws.rs.core.StreamingOutput>

getSize

public long getSize(javax.ws.rs.core.StreamingOutput o,
                    Class<?> type,
                    Type genericType,
                    Annotation[] annotations,
                    javax.ws.rs.core.MediaType mediaType)
Specified by:
getSize in interface javax.ws.rs.ext.MessageBodyWriter<javax.ws.rs.core.StreamingOutput>

writeTo

public void writeTo(javax.ws.rs.core.StreamingOutput o,
                    Class<?> t,
                    Type gt,
                    Annotation[] as,
                    javax.ws.rs.core.MediaType mediaType,
                    javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
                    OutputStream entity)
             throws IOException
Specified by:
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<javax.ws.rs.core.StreamingOutput>
Throws:
IOException


Copyright © 2011 Oracle Corporation. All Rights Reserved.