org.glassfish.jersey.message.internal
Class SourceProvider.SaxSourceReader
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SourceProvider.SaxSourceReader
public SourceProvider.SaxSourceReader(@Context
Factory<SAXParserFactory> spf)
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.