@Produces(value={"application/xml","text/xml","*/*"}) @Consumes(value={"application/xml","text/xml","*/*"}) @Singleton public static final class SourceProvider.SaxSourceReader extends Object implements MessageBodyReader<SAXSource>
SAXSource
instances.Constructor and Description |
---|
SaxSourceReader(javax.inject.Provider<SAXParserFactory> spf) |
Modifier and Type | Method and 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) |
@Inject public SaxSourceReader(@Context javax.inject.Provider<SAXParserFactory> spf)
public boolean isReadable(Class<?> t, Type gt, Annotation[] as, MediaType mediaType)
isReadable
in interface MessageBodyReader<SAXSource>
public SAXSource readFrom(Class<SAXSource> t, Type gt, Annotation[] as, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException
readFrom
in interface MessageBodyReader<SAXSource>
IOException
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.