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

Deprecated. see ByteSourcePayload

@Deprecated
public class ByteArrayPayload
extends BasePayload<byte[]>


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

Constructor Detail

ByteArrayPayload

public ByteArrayPayload(byte[] content)
Deprecated. 

ByteArrayPayload

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

openStream

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



Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.