org.glassfish.jersey.message.internal
Class SourceProvider.StreamSourceReader

java.lang.Object
  extended by org.glassfish.jersey.message.internal.SourceProvider.StreamSourceReader
All Implemented Interfaces:
MessageBodyReader<StreamSource>
Enclosing class:
SourceProvider

@Singleton
public static final class SourceProvider.StreamSourceReader
extends Object
implements MessageBodyReader<StreamSource>

Provider for un-marshalling StreamSource instances.


Constructor Summary
SourceProvider.StreamSourceReader()
           
 
Method Summary
 boolean isReadable(Class<?> t, Type gt, Annotation[] as, MediaType mediaType)
           
 StreamSource readFrom(Class<StreamSource> t, Type gt, Annotation[] as, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceProvider.StreamSourceReader

public SourceProvider.StreamSourceReader()
Method Detail

isReadable

public boolean isReadable(Class<?> t,
                          Type gt,
                          Annotation[] as,
                          MediaType mediaType)
Specified by:
isReadable in interface MessageBodyReader<StreamSource>

readFrom

public StreamSource readFrom(Class<StreamSource> t,
                             Type gt,
                             Annotation[] as,
                             MediaType mediaType,
                             MultivaluedMap<String,String> httpHeaders,
                             InputStream entityStream)
                      throws IOException
Specified by:
readFrom in interface MessageBodyReader<StreamSource>
Throws:
IOException


Copyright © 2007-2013 Oracle Corporation. All Rights Reserved. Use is subject to license terms.