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