public final class InputStreamContent extends Object implements Content
Content which is stored in a InputStream| Modifier and Type | Class and Description |
|---|---|
static class |
InputStreamContent.Type |
| Constructor and Description |
|---|
InputStreamContent(Message<?> m,
InputStreamContent.Type type) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getInputStream()
Return the content as
InputStream |
long |
size()
Size (in octets) of the content.
|
public InputStreamContent(Message<?> m, InputStreamContent.Type type) throws IOException
IOExceptionpublic long size()
Contentsize in interface ContentContent.size()public InputStream getInputStream() throws IOException
ContentInputStreamgetInputStream in interface ContentIOExceptionContent.getInputStream()Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.