Class InputStreamMessageBodyHandler

  • All Implemented Interfaces:
    javax.ws.rs.ext.MessageBodyReader<InputStream>, javax.ws.rs.ext.MessageBodyWriter<InputStream>

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

      • InputStreamMessageBodyHandler

        public InputStreamMessageBodyHandler()
    • Method Detail

      • isReadable

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

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

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