Package io.micronaut.jaxrs.common
Class JaxRsInputStreamMessageBodyReader
java.lang.Object
io.micronaut.jaxrs.common.JaxRsInputStreamMessageBodyReader
- All Implemented Interfaces:
MessageBodyReader<InputStream>
@Prototype
@Internal
public final class JaxRsInputStreamMessageBodyReader
extends Object
implements MessageBodyReader<InputStream>
The implementation of
MessageBodyReader
for InputStream
.- Since:
- 4.6
- Author:
- Denis Stepanov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isReadable
(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) readFrom
(Class<InputStream> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, String> httpHeaders, InputStream entityStream)
-
Constructor Details
-
JaxRsInputStreamMessageBodyReader
public JaxRsInputStreamMessageBodyReader()
-
-
Method Details
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) - Specified by:
isReadable
in interfaceMessageBodyReader<InputStream>
-
readFrom
public InputStream readFrom(Class<InputStream> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, String> httpHeaders, InputStream entityStream) throws IOException, WebApplicationException- Specified by:
readFrom
in interfaceMessageBodyReader<InputStream>
- Throws:
IOException
WebApplicationException
-