public class ChunkedUploadPayload
extends org.jclouds.io.payloads.BasePayload<org.jclouds.io.Payload>
| Constructor and Description |
|---|
ChunkedUploadPayload(org.jclouds.io.Payload payload,
int blockSize,
String timestamp,
String scope,
com.google.common.io.ByteProcessor<byte[]> hmacSHA256,
String seedSignature) |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
constructSignedChunk(int userDataLen,
byte[] userData)
Returns a chunk for upload consisting of the signed 'header' or chunk
prefix plus the user data.
|
boolean |
isRepeatable() |
InputStream |
openStream() |
void |
release() |
protected byte[] constructSignedChunk(int userDataLen,
byte[] userData)
userDataLen - The length of the user data contained in userDatauserData - Contains the user data to be sent in the upload chunkpublic void release()
release in interface org.jclouds.io.Payloadrelease in class org.jclouds.io.payloads.BasePayload<org.jclouds.io.Payload>public boolean isRepeatable()
isRepeatable in interface org.jclouds.io.PayloadisRepeatable in class org.jclouds.io.payloads.BasePayload<org.jclouds.io.Payload>public InputStream openStream() throws IOException
IOExceptionCopyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.