Class InputStreamMessageBodyHandler

java.lang.Object
org.jboss.resteasy.reactive.common.providers.serialisers.InputStreamMessageBodyHandler
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<InputStream>, jakarta.ws.rs.ext.MessageBodyWriter<InputStream>

public class InputStreamMessageBodyHandler extends Object implements jakarta.ws.rs.ext.MessageBodyWriter<InputStream>, jakarta.ws.rs.ext.MessageBodyReader<InputStream>
  • Constructor Details

    • InputStreamMessageBodyHandler

      public InputStreamMessageBodyHandler()
  • Method Details

    • isReadable

      public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
      Specified by:
      isReadable in interface jakarta.ws.rs.ext.MessageBodyReader<InputStream>
    • readFrom

      public InputStream readFrom(Class<InputStream> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException
      Specified by:
      readFrom in interface jakarta.ws.rs.ext.MessageBodyReader<InputStream>
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException
    • isWriteable

      public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
      Specified by:
      isWriteable in interface jakarta.ws.rs.ext.MessageBodyWriter<InputStream>
    • writeTo

      public void writeTo(InputStream inputStream, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException
      Specified by:
      writeTo in interface jakarta.ws.rs.ext.MessageBodyWriter<InputStream>
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException
    • writeTo

      protected void writeTo(InputStream inputStream, OutputStream entityStream) throws IOException
      Throws:
      IOException