org.jboss.resteasy.plugins.providers
Class ByteArrayProvider
java.lang.Object
org.jboss.resteasy.plugins.providers.ByteArrayProvider
- All Implemented Interfaces:
- javax.ws.rs.ext.MessageBodyReader<byte[]>, javax.ws.rs.ext.MessageBodyWriter<byte[]>
public class ByteArrayProvider
- extends Object
- implements javax.ws.rs.ext.MessageBodyReader<byte[]>, javax.ws.rs.ext.MessageBodyWriter<byte[]>
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
Method Summary |
long |
getSize(byte[] bytes,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
|
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[] bytes,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteArrayProvider
public ByteArrayProvider()
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<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
- Specified by:
readFrom
in interface javax.ws.rs.ext.MessageBodyReader<byte[]>
- Throws:
IOException
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<byte[]>
getSize
public long getSize(byte[] bytes,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
- Specified by:
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<byte[]>
writeTo
public void writeTo(byte[] bytes,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
throws IOException
- Specified by:
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<byte[]>
- Throws:
IOException
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.