Class ReaderProvider

java.lang.Object
org.jboss.resteasy.plugins.providers.ReaderProvider
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<Reader>, jakarta.ws.rs.ext.MessageBodyWriter<Reader>

@Provider @Produces("*/*") @Consumes("*/*") public class ReaderProvider extends Object implements jakarta.ws.rs.ext.MessageBodyReader<Reader>, jakarta.ws.rs.ext.MessageBodyWriter<Reader>
Version:
$Revision: 1 $
Author:
BillBurke
  • Constructor Details

    • ReaderProvider

      public ReaderProvider()
  • 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<Reader>
    • readFrom

      public Reader readFrom(Class<Reader> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException
      Specified by:
      readFrom in interface jakarta.ws.rs.ext.MessageBodyReader<Reader>
      Throws:
      IOException
    • 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<Reader>
    • getSize

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

      public void writeTo(Reader 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
      Specified by:
      writeTo in interface jakarta.ws.rs.ext.MessageBodyWriter<Reader>
      Throws:
      IOException