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