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