Package io.micronaut.jaxrs.common
Class JaxRsInputStreamMessageBodyWriter<T extends InputStream>
java.lang.Object
io.micronaut.jaxrs.common.JaxRsInputStreamMessageBodyWriter<T>
- Type Parameters:
T
- The input type
- All Implemented Interfaces:
MessageBodyWriter<T>
@Prototype
@Internal
public final class JaxRsInputStreamMessageBodyWriter<T extends InputStream>
extends Object
implements MessageBodyWriter<T>
The implementation of
MessageBodyWriter
for InputStream
.- Since:
- 4.6
- Author:
- Denis Stepanov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isWriteable
(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) void
writeTo
(T inputStream, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jakarta.ws.rs.ext.MessageBodyWriter
getSize
-
Constructor Details
-
JaxRsInputStreamMessageBodyWriter
public JaxRsInputStreamMessageBodyWriter()
-
-
Method Details
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) - Specified by:
isWriteable
in interfaceMessageBodyWriter<T extends InputStream>
-
writeTo
public void writeTo(T inputStream, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) throws IOException, WebApplicationException- Specified by:
writeTo
in interfaceMessageBodyWriter<T extends InputStream>
- Throws:
IOException
WebApplicationException
-