Class SourceProvider.StreamSourceReader
java.lang.Object
org.glassfish.jersey.message.internal.SourceProvider.StreamSourceReader
- All Implemented Interfaces:
MessageBodyReader<StreamSource>
- Enclosing class:
- SourceProvider
@Produces({"application/xml","text/xml","*/*"})
@Consumes({"application/xml","text/xml","*/*"})
@Singleton
public static final class SourceProvider.StreamSourceReader
extends Object
implements MessageBodyReader<StreamSource>
Provider for un-marshalling
StreamSource
instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isReadable
(Class<?> t, Type gt, Annotation[] as, MediaType mediaType) readFrom
(Class<StreamSource> t, Type gt, Annotation[] as, MediaType mediaType, MultivaluedMap<String, String> httpHeaders, InputStream entityStream)
-
Constructor Details
-
StreamSourceReader
public StreamSourceReader()
-
-
Method Details
-
isReadable
- Specified by:
isReadable
in interfaceMessageBodyReader<StreamSource>
-
readFrom
public StreamSource readFrom(Class<StreamSource> t, Type gt, Annotation[] as, MediaType mediaType, MultivaluedMap<String, String> httpHeaders, InputStream entityStream) throws IOException- Specified by:
readFrom
in interfaceMessageBodyReader<StreamSource>
- Throws:
IOException
-