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
-
Field Summary
Fields inherited from class org.jclouds.io.payloads.BasePayload
content, contentMetadata, written
-
Constructor Summary
ConstructorsConstructorDescriptionByteArrayPayload
(byte[] content) ByteArrayPayload
(byte[] content, byte[] md5) -
Method Summary
Modifier and TypeMethodDescriptionCreates 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
-
Constructor Details
-
ByteArrayPayload
public ByteArrayPayload(byte[] content) -
ByteArrayPayload
public ByteArrayPayload(byte[] content, byte[] md5)
-
-
Method Details
-
openStream
Creates a new InputStream object of the payload.
-