org.jclouds.io.payloads
Class InputStreamSupplierPayload
java.lang.Object
org.jclouds.io.payloads.BasePayload<com.google.common.io.InputSupplier<? extends InputStream>>
org.jclouds.io.payloads.InputStreamSupplierPayload
- All Implemented Interfaces:
- com.google.common.io.InputSupplier<InputStream>, Closeable, Payload, WriteTo
public class InputStreamSupplierPayload
- extends BasePayload<com.google.common.io.InputSupplier<? extends InputStream>>
- Author:
- Adrian Cole
Method Summary |
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. |
InputStreamSupplierPayload
public InputStreamSupplierPayload(com.google.common.io.InputSupplier<? extends InputStream> content)
getInput
public InputStream getInput()
- Creates a new InputStream object of the payload.
isRepeatable
public boolean isRepeatable()
- By default we are repeatable.
- Specified by:
isRepeatable
in interface Payload
- Overrides:
isRepeatable
in class BasePayload<com.google.common.io.InputSupplier<? extends InputStream>>
release
public void release()
- if we created the stream, then it is already consumed on close.
- Specified by:
release
in interface Payload
- Overrides:
release
in class BasePayload<com.google.common.io.InputSupplier<? extends InputStream>>
Copyright © 2009-2012 jclouds. All Rights Reserved.