org.jclouds.io.payloads
Class InputStreamSupplierPayload

java.lang.Object
  extended by org.jclouds.io.payloads.BasePayload<com.google.common.io.InputSupplier<? extends InputStream>>
      extended by org.jclouds.io.payloads.InputStreamSupplierPayload
All Implemented Interfaces:
com.google.common.io.InputSupplier<InputStream>, Closeable, Payload, WriteTo

Deprecated. see ByteSourcePayload

@Deprecated
public class InputStreamSupplierPayload
extends BasePayload<com.google.common.io.InputSupplier<? extends InputStream>>

Author:
Adrian Cole

Field Summary
 
Fields inherited from class org.jclouds.io.payloads.BasePayload
content, contentMetadata, written
 
Constructor Summary
InputStreamSupplierPayload(com.google.common.io.InputSupplier<? extends InputStream> content)
          Deprecated.  
 
Method Summary
 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.
 
Methods inherited from class org.jclouds.io.payloads.BasePayload
close, equals, getContentMetadata, getInput, getRawContent, hashCode, setContentMetadata, toString, writeTo
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InputStreamSupplierPayload

public InputStreamSupplierPayload(com.google.common.io.InputSupplier<? extends InputStream> content)
Deprecated. 
Method Detail

openStream

public InputStream openStream()
                       throws IOException
Deprecated. 
Creates a new InputStream object of the payload.

Throws:
IOException

isRepeatable

public boolean isRepeatable()
Deprecated. 
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()
Deprecated. 
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-2014 The Apache Software Foundation. All Rights Reserved.