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
IOException
public long size()
Content
size
in interface Content
Content.size()
public InputStream getInputStream() throws IOException
Content
InputStream
getInputStream
in interface Content
IOException
Content.getInputStream()
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.