Class StreamingOutputProvider
- java.lang.Object
-
- org.glassfish.jersey.message.internal.StreamingOutputProvider
-
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<javax.ws.rs.core.StreamingOutput>
@Produces({"application/octet-stream","*/*"}) @Singleton public final class StreamingOutputProvider extends java.lang.Object implements javax.ws.rs.ext.MessageBodyWriter<javax.ws.rs.core.StreamingOutput>
Message body writer that supportsstreaming output
marshalling.
-
-
Constructor Summary
Constructors Constructor Description StreamingOutputProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getSize(javax.ws.rs.core.StreamingOutput o, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
boolean
isWriteable(java.lang.Class<?> t, java.lang.reflect.Type gt, java.lang.annotation.Annotation[] as, javax.ws.rs.core.MediaType mediaType)
void
writeTo(javax.ws.rs.core.StreamingOutput o, java.lang.Class<?> t, java.lang.reflect.Type gt, java.lang.annotation.Annotation[] as, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders, java.io.OutputStream entity)
-
-
-
Method Detail
-
isWriteable
public boolean isWriteable(java.lang.Class<?> t, java.lang.reflect.Type gt, java.lang.annotation.Annotation[] as, javax.ws.rs.core.MediaType mediaType)
- Specified by:
isWriteable
in interfacejavax.ws.rs.ext.MessageBodyWriter<javax.ws.rs.core.StreamingOutput>
-
getSize
public long getSize(javax.ws.rs.core.StreamingOutput o, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
getSize
in interfacejavax.ws.rs.ext.MessageBodyWriter<javax.ws.rs.core.StreamingOutput>
-
writeTo
public void writeTo(javax.ws.rs.core.StreamingOutput o, java.lang.Class<?> t, java.lang.reflect.Type gt, java.lang.annotation.Annotation[] as, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders, java.io.OutputStream entity) throws java.io.IOException
- Specified by:
writeTo
in interfacejavax.ws.rs.ext.MessageBodyWriter<javax.ws.rs.core.StreamingOutput>
- Throws:
java.io.IOException
-
-