org.glassfish.jersey.message.internal
Class DataSourceProvider
java.lang.Object
org.glassfish.jersey.message.internal.AbstractMessageReaderWriterProvider<javax.activation.DataSource>
org.glassfish.jersey.message.internal.DataSourceProvider
- All Implemented Interfaces:
- MessageBodyReader<javax.activation.DataSource>, MessageBodyWriter<javax.activation.DataSource>
public class DataSourceProvider
- extends AbstractMessageReaderWriterProvider<javax.activation.DataSource>
Provider for marshalling/un-marshalling of application/octet-stream
entity type to/from a DataSourceProvider.ByteArrayDataSource instance.
- Author:
- Paul Sandoz, Marek Potociar (marek.potociar at oracle.com)
|
Method Summary |
boolean |
isReadable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
MediaType mediaType)
|
boolean |
isWriteable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
MediaType mediaType)
|
javax.activation.DataSource |
readFrom(java.lang.Class<javax.activation.DataSource> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<java.lang.String,java.lang.String> httpHeaders,
java.io.InputStream entityStream)
|
void |
writeTo(javax.activation.DataSource t,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders,
java.io.OutputStream entityStream)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataSourceProvider
public DataSourceProvider()
isReadable
public boolean isReadable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
MediaType mediaType)
readFrom
public javax.activation.DataSource readFrom(java.lang.Class<javax.activation.DataSource> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<java.lang.String,java.lang.String> httpHeaders,
java.io.InputStream entityStream)
throws java.io.IOException
- Throws:
java.io.IOException
isWriteable
public boolean isWriteable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
MediaType mediaType)
writeTo
public void writeTo(javax.activation.DataSource t,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders,
java.io.OutputStream entityStream)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.