Class TckByteArrayProvider

java.lang.Object
ee.jakarta.tck.ws.rs.spec.provider.overridestandard.AbstractProvider
ee.jakarta.tck.ws.rs.spec.provider.overridestandard.TckByteArrayProvider
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<byte[]>, jakarta.ws.rs.ext.MessageBodyWriter<byte[]>

@Provider public class TckByteArrayProvider extends AbstractProvider implements jakarta.ws.rs.ext.MessageBodyReader<byte[]>, jakarta.ws.rs.ext.MessageBodyWriter<byte[]>
  • Constructor Details

    • TckByteArrayProvider

      public TckByteArrayProvider()
  • Method Details

    • 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<byte[]>
    • getSize

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

      public void writeTo(byte[] t, 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<byte[]>
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException
    • 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<byte[]>
    • readFrom

      public byte[] readFrom(Class<byte[]> 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<byte[]>
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException