public class InputStreamPayload extends BasePayload<InputStream>
content, contentMetadata, written| Constructor and Description |
|---|
InputStreamPayload(InputStream content) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isRepeatable()
By default we are repeatable.
|
InputStream |
openStream()
Creates a new InputStream object of the payload.
|
void |
release()
if we created the stream, then it is already consumed on close.
|
close, equals, getContentMetadata, getInput, getRawContent, hashCode, isSensitive, setContentMetadata, setSensitive, toStringpublic InputStreamPayload(InputStream content)
public InputStream openStream()
public boolean isRepeatable()
isRepeatable in interface PayloadisRepeatable in class BasePayload<InputStream>public void release()
release in interface Payloadrelease in class BasePayload<InputStream>Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.