@Test public void testStreamSourceProviderIsReadable() { SourceProvider.StreamSourceProvider sp = new SourceProvider.StreamSourceProvider(); assertTrue(sp.isReadable(Source.class, null, null, MediaType.APPLICATION_XML_TYPE)); assertTrue(sp.isReadable(StreamSource.class, null, null, MediaType.TEXT_XML_TYPE)); }
protected boolean isReadable(MediaType mediaType) { return MediaTypeUtils.isXmlType(mediaType); }
SourceProvider implements MessageBodyWriter<Source> { protected boolean isReadable(MediaType mediaType) { return MediaTypeUtils.isXmlType(mediaType); } }
SourceProvider implements MessageBodyWriter<Source> { protected boolean isReadable(MediaType mediaType) { return MediaTypeUtils.isXmlType(mediaType); }  }
SourceProvider implements MessageBodyWriter<Source> { protected boolean isReadable(MediaType mediaType) { return MediaTypeUtils.isXmlType(mediaType); }  long getSize(Source t,
                        Class<?> type,
                        Type genericType,
                        Annotation[] annotations,
                        MediaType mediaType); boolean isWriteable(Class<?> type,
                               Type genericType,
                               Annotation[] annotations,
                               MediaType mediaType); void writeTo(Source t,
                        Class<?> type,
                        Type genericType,
                        Annotation[] annotations,
                        MediaType mediaType,
                        MultivaluedMap<String, Object> httpHeaders,
                        OutputStream entityStream); }
SourceProvider implements MessageBodyWriter<Source> { protected boolean isReadable(MediaType mediaType) { return MediaTypeUtils.isXmlType(mediaType); }  long getSize(Source t,
                        Class<?> type,
                        Type genericType,
                        Annotation[] annotations,
                        MediaType mediaType); boolean isWriteable(Class<?> type,
                               Type genericType,
                               Annotation[] annotations,
                               MediaType mediaType); void writeTo(Source t,
                        Class<?> type,
                        Type genericType,
                        Annotation[] annotations,
                        MediaType mediaType,
                        MultivaluedMap<String, Object> httpHeaders,
                        OutputStream entityStream);  }