Class ByteArrayMessageBodyHandler
- java.lang.Object
-
- org.jboss.resteasy.reactive.common.providers.serialisers.ByteArrayMessageBodyHandler
-
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<byte[]>
,javax.ws.rs.ext.MessageBodyWriter<byte[]>
public class ByteArrayMessageBodyHandler extends Object implements javax.ws.rs.ext.MessageBodyReader<byte[]>, javax.ws.rs.ext.MessageBodyWriter<byte[]>
-
-
Constructor Summary
Constructors Constructor Description ByteArrayMessageBodyHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
boolean
isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
byte[]
readFrom(Class<byte[]> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream)
void
writeTo(byte[] o, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
-
-
-
Method Detail
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
isWriteable
in interfacejavax.ws.rs.ext.MessageBodyWriter<byte[]>
-
writeTo
public void writeTo(byte[] o, 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 interfacejavax.ws.rs.ext.MessageBodyWriter<byte[]>
- Throws:
IOException
javax.ws.rs.WebApplicationException
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
isReadable
in interfacejavax.ws.rs.ext.MessageBodyReader<byte[]>
-
readFrom
public byte[] readFrom(Class<byte[]> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException
- Specified by:
readFrom
in interfacejavax.ws.rs.ext.MessageBodyReader<byte[]>
- Throws:
IOException
javax.ws.rs.WebApplicationException
-
-