@Produces(value={"application/octet-stream","*/*"}) @Consumes(value={"application/octet-stream","*/*"}) public final class ByteArrayProvider extends AbstractMessageReaderWriterProvider<byte[]>
UTF8| Constructor and Description |
|---|
ByteArrayProvider() |
| Modifier and Type | Method and Description |
|---|---|
long |
getSize(byte[] t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
byte[] |
readFrom(Class<byte[]> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,String> httpHeaders,
InputStream entityStream) |
void |
writeTo(byte[] t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
getCharset, readFromAsString, writeTo, writeTo, writeToAsStringpublic boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
public byte[] readFrom(Class<byte[]> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException
IOExceptionpublic boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
public void writeTo(byte[] t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
throws IOException
IOExceptionpublic long getSize(byte[] t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
getSize in interface MessageBodyWriter<byte[]>getSize in class AbstractMessageReaderWriterProvider<byte[]>Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.