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 supportsstreaming output
marshalling.- Author:
- Paul Sandoz
-
-
Constructor Summary
Constructors Constructor Description StreamingOutputProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
Method Detail
-
isWriteable
public boolean isWriteable(Class<?> t, Type gt, Annotation[] as, MediaType mediaType)
- Specified by:
isWriteable
in interfaceMessageBodyWriter<StreamingOutput>
-
getSize
public long getSize(StreamingOutput o, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
- Specified by:
getSize
in 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:
writeTo
in interfaceMessageBodyWriter<StreamingOutput>
- Throws:
IOException
-
-