Class StreamingOutputProvider
java.lang.Object
org.jboss.resteasy.plugins.providers.StreamingOutputProvider
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<jakarta.ws.rs.core.StreamingOutput>
@Provider
@Produces("*/*")
public class StreamingOutputProvider
extends Object
implements jakarta.ws.rs.ext.MessageBodyWriter<jakarta.ws.rs.core.StreamingOutput>
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetSize(jakarta.ws.rs.core.StreamingOutput streamingOutput, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) booleanisWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) voidwriteTo(jakarta.ws.rs.core.StreamingOutput streamingOutput, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream)
-
Constructor Details
-
StreamingOutputProvider
public StreamingOutputProvider()
-
-
Method Details
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isWriteablein interfacejakarta.ws.rs.ext.MessageBodyWriter<jakarta.ws.rs.core.StreamingOutput>
-
getSize
public long getSize(jakarta.ws.rs.core.StreamingOutput streamingOutput, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
getSizein interfacejakarta.ws.rs.ext.MessageBodyWriter<jakarta.ws.rs.core.StreamingOutput>
-
writeTo
public void writeTo(jakarta.ws.rs.core.StreamingOutput streamingOutput, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) throws IOException- Specified by:
writeToin interfacejakarta.ws.rs.ext.MessageBodyWriter<jakarta.ws.rs.core.StreamingOutput>- Throws:
IOException
-