org.jclouds.io.payloads
Class ByteArrayPayload

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

public class ByteArrayPayload
extends BasePayload<byte[]>

Author:
Adrian Cole

Field Summary
 
Fields inherited from class org.jclouds.io.payloads.BasePayload
content, contentMetadata, written
 
Constructor Summary
ByteArrayPayload(byte[] content)
           
ByteArrayPayload(byte[] content, byte[] md5)
           
 
Method Summary
 InputStream getInput()
          Creates a new InputStream object of the payload.
 
Methods inherited from class org.jclouds.io.payloads.BasePayload
close, equals, getContentMetadata, getRawContent, hashCode, isRepeatable, release, setContentMetadata, toString, writeTo
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ByteArrayPayload

public ByteArrayPayload(byte[] content)

ByteArrayPayload

public ByteArrayPayload(byte[] content,
                        byte[] md5)
Method Detail

getInput

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



Copyright © 2009-2011 jclouds. All Rights Reserved.