org.glassfish.jersey.message.internal
Class StreamingOutputProvider

java.lang.Object
  extended by org.glassfish.jersey.message.internal.StreamingOutputProvider
All Implemented Interfaces:
MessageBodyWriter<StreamingOutput>

@Singleton
public final class StreamingOutputProvider
extends Object
implements MessageBodyWriter<StreamingOutput>

Message body writer that supports streaming output marshalling.

Author:
Paul Sandoz

Constructor Summary
StreamingOutputProvider()
           
 
Method Summary
 long getSize(StreamingOutput o, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean isWriteable(Class<?> t, Type gt, Annotation[] as, MediaType mediaType)
           
 void writeTo(StreamingOutput o, Class<?> t, Type gt, Annotation[] as, MediaType mediaType, 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,
                           MediaType mediaType)
Specified by:
isWriteable in interface MessageBodyWriter<StreamingOutput>

getSize

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

writeTo

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


Copyright © 2007-2013 Oracle Corporation. All Rights Reserved. Use is subject to license terms.