Class SourceProvider.SaxSourceReader
java.lang.Object
org.glassfish.jersey.message.internal.SourceProvider.SaxSourceReader
- All Implemented Interfaces:
MessageBodyReader<SAXSource>
- Enclosing class:
- SourceProvider
@Produces({"application/xml","text/xml","*/*"})
@Consumes({"application/xml","text/xml","*/*"})
@Singleton
public static final class SourceProvider.SaxSourceReader
extends Object
implements MessageBodyReader<SAXSource>
Provider for un-marshalling
SAXSource
instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isReadable
(Class<?> t, Type gt, Annotation[] as, MediaType mediaType) readFrom
(Class<SAXSource> t, Type gt, Annotation[] as, MediaType mediaType, MultivaluedMap<String, String> httpHeaders, InputStream entityStream)
-
Constructor Details
-
SaxSourceReader
-
-
Method Details
-
isReadable
- Specified by:
isReadable
in interfaceMessageBodyReader<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 interfaceMessageBodyReader<SAXSource>
- Throws:
IOException
-