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) |
Modifier and Type | Method and Description |
---|---|
InputStream |
getInput()
Creates a new InputStream object of the payload.
|
boolean |
isRepeatable()
By default we are repeatable.
|
void |
release()
if we created the stream, then it is already consumed on close.
|
close, equals, getContentMetadata, getRawContent, hashCode, setContentMetadata, toString, writeTo
public InputStreamSupplierPayload(com.google.common.io.InputSupplier<? extends InputStream> content)
public InputStream getInput()
public boolean isRepeatable()
isRepeatable
in interface Payload
isRepeatable
in class BasePayload<com.google.common.io.InputSupplier<? extends InputStream>>
public void release()
release
in interface Payload
release
in class BasePayload<com.google.common.io.InputSupplier<? extends InputStream>>
Copyright © 2009-2012 jclouds. All Rights Reserved.