public final class AwsSignedChunkedEncodingInputStream extends AwsChunkedEncodingInputStream
| Modifier and Type | Class and Description |
|---|---|
static class |
AwsSignedChunkedEncodingInputStream.Builder |
| Modifier and Type | Method and Description |
|---|---|
static AwsSignedChunkedEncodingInputStream.Builder |
builder() |
static long |
calculateStreamContentLength(long originalLength,
int signatureLength,
AwsChunkedEncodingConfig config)
Calculates the expected total length of signed payload chunked stream.
|
protected byte[] |
createChunk(byte[] chunkData) |
protected byte[] |
createFinalChunk(byte[] finalChunk) |
void |
reset() |
getWrappedInputStream, mark, markSupported, read, read, skipabort, abortIfNeeded, releaseavailable, close, readclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreleasepublic static AwsSignedChunkedEncodingInputStream.Builder builder()
public static long calculateStreamContentLength(long originalLength,
int signatureLength,
AwsChunkedEncodingConfig config)
originalLength - The length of the datasignatureLength - The length of a calculated signature, dependent on which AwsChunkSigner is usedconfig - The chunked encoding config determines the size of the chunks. Use the same values as when
initializing the stream.protected byte[] createFinalChunk(byte[] finalChunk)
createFinalChunk in class AwsChunkedEncodingInputStreamprotected byte[] createChunk(byte[] chunkData)
createChunk in class AwsChunkedEncodingInputStreampublic void reset()
throws IOException
reset in class AwsChunkedEncodingInputStreamIOExceptionCopyright © 2021. All rights reserved.