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