org.jclouds.io.payloads
Class PhantomPayload

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

public class PhantomPayload
extends BasePayload<Object>

Author:
Adrian Cole

Field Summary
 
Fields inherited from class org.jclouds.io.payloads.BasePayload
content, contentMetadata, written
 
Constructor Summary
PhantomPayload()
           
PhantomPayload(ContentMetadata contentMetadata)
           
PhantomPayload(MutableContentMetadata contentMetadata)
           
 
Method Summary
 InputStream getInput()
          Creates a new InputStream object of the payload.
 void writeTo(OutputStream outstream)
          Writes the payload content to the output stream.
 
Methods inherited from class org.jclouds.io.payloads.BasePayload
close, equals, getContentMetadata, getRawContent, hashCode, isRepeatable, release, setContentMetadata, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PhantomPayload

public PhantomPayload()

PhantomPayload

public PhantomPayload(ContentMetadata contentMetadata)

PhantomPayload

public PhantomPayload(MutableContentMetadata contentMetadata)
Method Detail

getInput

public InputStream getInput()
Creates a new InputStream object of the payload.


writeTo

public void writeTo(OutputStream outstream)
             throws IOException
Description copied from class: BasePayload
Writes the payload content to the output stream.

Specified by:
writeTo in interface WriteTo
Overrides:
writeTo in class BasePayload<Object>
Throws:
IOException


Copyright © 2009-2011 jclouds. All Rights Reserved.