Class StreamingOutputProvider
java.lang.Object
org.glassfish.jersey.message.internal.StreamingOutputProvider
- All Implemented Interfaces:
MessageBodyWriter<StreamingOutput>
@Produces({"application/octet-stream","*/*"})
@Singleton
public final class StreamingOutputProvider
extends Object
implements MessageBodyWriter<StreamingOutput>
Message body writer that supports
streaming output marshalling.- Author:
- Paul Sandoz
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetSize(StreamingOutput o, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) booleanisWriteable(Class<?> t, Type gt, Annotation[] as, MediaType mediaType) voidwriteTo(StreamingOutput o, Class<?> t, Type gt, Annotation[] as, MediaType mediaType, MultivaluedMap<String, Object> httpHeaders, OutputStream entity)
-
Constructor Details
-
StreamingOutputProvider
public StreamingOutputProvider()
-
-
Method Details
-
isWriteable
- Specified by:
isWriteablein interfaceMessageBodyWriter<StreamingOutput>
-
getSize
public long getSize(StreamingOutput o, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) - Specified by:
getSizein interfaceMessageBodyWriter<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:
writeToin interfaceMessageBodyWriter<StreamingOutput>- Throws:
IOException
-