org.glassfish.jersey.message.internal
Class InputStreamProvider
java.lang.Object
org.glassfish.jersey.message.internal.AbstractMessageReaderWriterProvider<InputStream>
org.glassfish.jersey.message.internal.InputStreamProvider
- All Implemented Interfaces:
- MessageBodyReader<InputStream>, MessageBodyWriter<InputStream>
@Singleton
public final class InputStreamProvider
- extends AbstractMessageReaderWriterProvider<InputStream>
- Author:
- Paul Sandoz
|
Method Summary |
long |
getSize(InputStream t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
InputStream |
readFrom(Class<InputStream> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,String> httpHeaders,
InputStream entityStream)
|
void |
writeTo(InputStream t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InputStreamProvider
public InputStreamProvider()
isReadable
public boolean isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
readFrom
public InputStream readFrom(Class<InputStream> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,String> httpHeaders,
InputStream entityStream)
throws IOException
- Throws:
IOException
isWriteable
public boolean isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
getSize
public long getSize(InputStream t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
- Specified by:
getSize in interface MessageBodyWriter<InputStream>- Overrides:
getSize in class AbstractMessageReaderWriterProvider<InputStream>
writeTo
public void writeTo(InputStream t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
throws IOException
- Throws:
IOException
Copyright © 2007-2013 Oracle Corporation. All Rights Reserved. Use is subject to license terms.