@Produces(value={"application/octet-stream","*/*"})
@Singleton
public final class StreamingOutputProvider
extends Object
implements jakarta.ws.rs.ext.MessageBodyWriter<jakarta.ws.rs.core.StreamingOutput>
streaming output marshalling.| Constructor and Description |
|---|
StreamingOutputProvider() |
| Modifier and Type | Method and Description |
|---|---|
long |
getSize(jakarta.ws.rs.core.StreamingOutput o,
Class<?> type,
Type genericType,
Annotation[] annotations,
jakarta.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(Class<?> t,
Type gt,
Annotation[] as,
jakarta.ws.rs.core.MediaType mediaType) |
void |
writeTo(jakarta.ws.rs.core.StreamingOutput o,
Class<?> t,
Type gt,
Annotation[] as,
jakarta.ws.rs.core.MediaType mediaType,
jakarta.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entity) |
public boolean isWriteable(Class<?> t, Type gt, Annotation[] as, jakarta.ws.rs.core.MediaType mediaType)
isWriteable in interface jakarta.ws.rs.ext.MessageBodyWriter<jakarta.ws.rs.core.StreamingOutput>public long getSize(jakarta.ws.rs.core.StreamingOutput o,
Class<?> type,
Type genericType,
Annotation[] annotations,
jakarta.ws.rs.core.MediaType mediaType)
getSize in interface jakarta.ws.rs.ext.MessageBodyWriter<jakarta.ws.rs.core.StreamingOutput>public void writeTo(jakarta.ws.rs.core.StreamingOutput o,
Class<?> t,
Type gt,
Annotation[] as,
jakarta.ws.rs.core.MediaType mediaType,
jakarta.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entity)
throws IOException
writeTo in interface jakarta.ws.rs.ext.MessageBodyWriter<jakarta.ws.rs.core.StreamingOutput>IOExceptionCopyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.