Package io.micronaut.jaxrs.common
Class JaxRsReaderMessageBodyWriter
java.lang.Object
io.micronaut.jaxrs.common.JaxRsReaderMessageBodyWriter
- All Implemented Interfaces:
MessageBodyWriter<Reader>
@Singleton
@Internal
public final class JaxRsReaderMessageBodyWriter
extends Object
implements MessageBodyWriter<Reader>
The implementation of
MessageBodyWriter
for Reader
.- Since:
- 4.6
- Author:
- Denis Stepanov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isWriteable
(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) void
writeTo
(Reader reader, 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
-
JaxRsReaderMessageBodyWriter
public JaxRsReaderMessageBodyWriter()
-
-
Method Details
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) - Specified by:
isWriteable
in interfaceMessageBodyWriter<Reader>
-
writeTo
public void writeTo(Reader reader, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) throws IOException, WebApplicationException- Specified by:
writeTo
in interfaceMessageBodyWriter<Reader>
- Throws:
IOException
WebApplicationException
-