org.glassfish.jersey.message.internal
Class StreamingOutputProvider

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

public final class StreamingOutputProvider
extends java.lang.Object
implements MessageBodyWriter<StreamingOutput>

Message body writer that supports streaming output marshalling.

Author:
Paul Sandoz

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

getSize

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

writeTo

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


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