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, toString
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()
BasePayload
release
in interface Payload
release
in class BasePayload<Payload>
public boolean isRepeatable()
BasePayload
isRepeatable
in interface Payload
isRepeatable
in class BasePayload<Payload>
public InputStream openStream() throws IOException
Payload
IOException
Copyright © 2009–2021 The Apache Software Foundation. All rights reserved.