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

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

@Singleton
public static final class SourceProvider.SaxSourceReader
extends Object
implements MessageBodyReader<SAXSource>

Provider for un-marshalling SAXSource instances.


Constructor Summary
SourceProvider.SaxSourceReader(Factory<SAXParserFactory> spf)
           
 
Method Summary
 boolean isReadable(Class<?> t, Type gt, Annotation[] as, MediaType mediaType)
           
 SAXSource readFrom(Class<SAXSource> 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.SaxSourceReader

public SourceProvider.SaxSourceReader(@Context
                                      Factory<SAXParserFactory> spf)
Method Detail

isReadable

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

readFrom

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


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