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

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

public static final class SourceProvider.StreamSourceReader
extends java.lang.Object
implements MessageBodyReader<javax.xml.transform.stream.StreamSource>

Provider for un-marshalling StreamSource instances.


Constructor Summary
SourceProvider.StreamSourceReader()
           
 
Method Summary
 boolean isReadable(java.lang.Class<?> t, java.lang.reflect.Type gt, java.lang.annotation.Annotation[] as, MediaType mediaType)
           
 javax.xml.transform.stream.StreamSource readFrom(java.lang.Class<javax.xml.transform.stream.StreamSource> t, java.lang.reflect.Type gt, java.lang.annotation.Annotation[] as, MediaType mediaType, MultivaluedMap<java.lang.String,java.lang.String> httpHeaders, java.io.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(java.lang.Class<?> t,
                          java.lang.reflect.Type gt,
                          java.lang.annotation.Annotation[] as,
                          MediaType mediaType)
Specified by:
isReadable in interface MessageBodyReader<javax.xml.transform.stream.StreamSource>

readFrom

public javax.xml.transform.stream.StreamSource readFrom(java.lang.Class<javax.xml.transform.stream.StreamSource> t,
                                                        java.lang.reflect.Type gt,
                                                        java.lang.annotation.Annotation[] as,
                                                        MediaType mediaType,
                                                        MultivaluedMap<java.lang.String,java.lang.String> httpHeaders,
                                                        java.io.InputStream entityStream)
                                                 throws java.io.IOException
Specified by:
readFrom in interface MessageBodyReader<javax.xml.transform.stream.StreamSource>
Throws:
java.io.IOException


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