@Produces(value={"application/octet-stream","*/*"})
@Singleton
public final class StreamingOutputProvider
extends java.lang.Object
implements javax.ws.rs.ext.MessageBodyWriter<javax.ws.rs.core.StreamingOutput>
streaming output marshalling.| Constructor and Description |
|---|
StreamingOutputProvider() |
| Modifier and Type | Method and 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) |
public boolean isWriteable(java.lang.Class<?> t,
java.lang.reflect.Type gt,
java.lang.annotation.Annotation[] as,
javax.ws.rs.core.MediaType mediaType)
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<javax.ws.rs.core.StreamingOutput>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)
getSize in interface javax.ws.rs.ext.MessageBodyWriter<javax.ws.rs.core.StreamingOutput>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
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<javax.ws.rs.core.StreamingOutput>java.io.IOException