Package org.jclouds.io.payloads
Class ByteArrayPayload
- java.lang.Object
-
- org.jclouds.io.payloads.BasePayload<byte[]>
-
- org.jclouds.io.payloads.ByteArrayPayload
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Payload
public class ByteArrayPayload extends BasePayload<byte[]>
-
-
Field Summary
-
Fields inherited from class org.jclouds.io.payloads.BasePayload
content, contentMetadata, written
-
-
Constructor Summary
Constructors Constructor Description ByteArrayPayload(byte[] content)
ByteArrayPayload(byte[] content, byte[] md5)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
openStream()
Creates a new InputStream object of the payload.-
Methods inherited from class org.jclouds.io.payloads.BasePayload
close, equals, getContentMetadata, getInput, getRawContent, hashCode, isRepeatable, isSensitive, release, setContentMetadata, setSensitive, toString
-
-
-
-
Method Detail
-
openStream
public InputStream openStream()
Creates a new InputStream object of the payload.
-
-