public class ChunkedUploadPayload extends BasePayload<Payload>
content, contentMetadata, written| Constructor and Description |
|---|
ChunkedUploadPayload(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()
By default we are repeatable.
|
InputStream |
openStream()
Creates a new InputStream object of the payload.
|
void |
release()
By default there are no resources to release.
|
close, equals, getContentMetadata, getInput, getRawContent, hashCode, isSensitive, setContentMetadata, setSensitive, toStringprotected 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()
BasePayloadrelease in interface Payloadrelease in class BasePayload<Payload>public boolean isRepeatable()
BasePayloadisRepeatable in interface PayloadisRepeatable in class BasePayload<Payload>public InputStream openStream() throws IOException
PayloadIOExceptionCopyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.