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-marshallingSAXSource
instances.
-
-
Constructor Summary
Constructors Constructor Description SaxSourceReader(jakarta.inject.Provider<SAXParserFactory> spf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
Constructor Detail
-
SaxSourceReader
@Inject public SaxSourceReader(@Context jakarta.inject.Provider<SAXParserFactory> spf)
-
-
Method Detail
-
isReadable
public boolean isReadable(Class<?> t, Type gt, Annotation[] as, MediaType mediaType)
- 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
-
-