@Deprecated public class InputStreamSupplierPayload extends BasePayload<com.google.common.io.InputSupplier<? extends InputStream>>
content, contentMetadata, written| Constructor and Description |
|---|
InputStreamSupplierPayload(com.google.common.io.InputSupplier<? extends InputStream> content)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isRepeatable()
Deprecated.
By default we are repeatable.
|
InputStream |
openStream()
Deprecated.
Creates a new InputStream object of the payload.
|
void |
release()
Deprecated.
if we created the stream, then it is already consumed on close.
|
close, equals, getContentMetadata, getInput, getRawContent, hashCode, setContentMetadata, toString, writeTopublic InputStreamSupplierPayload(com.google.common.io.InputSupplier<? extends InputStream> content)
public InputStream openStream() throws IOException
IOExceptionpublic boolean isRepeatable()
isRepeatable in interface PayloadisRepeatable in class BasePayload<com.google.common.io.InputSupplier<? extends InputStream>>public void release()
release in interface Payloadrelease in class BasePayload<com.google.common.io.InputSupplier<? extends InputStream>>Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.