public class AwsUnsignedChunkedEncodingInputStream extends AwsChunkedEncodingInputStream
| Modifier and Type | Class and Description |
|---|---|
static class |
AwsUnsignedChunkedEncodingInputStream.Builder |
calculatedChecksum, checksumHeaderForTrailer, CRLF, DEFAULT_CHUNK_SIZE, FINAL_CHUNK, HEADER_COLON_SEPARATOR, isTrailingTerminated, SKIP_BUFFER_SIZE| Modifier and Type | Method and Description |
|---|---|
static AwsUnsignedChunkedEncodingInputStream.Builder |
builder() |
static long |
calculateChecksumContentLength(Algorithm algorithm,
String headerName)
Calculates the content length for a given Algorithm and header name.
|
static long |
calculateStreamContentLength(long originalLength,
long defaultChunkSize) |
protected byte[] |
createChecksumChunkHeader() |
protected byte[] |
createChunk(byte[] chunkData)
Creates chunk for the given buffer.
|
protected byte[] |
createFinalChunk(byte[] finalChunk)
The final chunk.
|
getWrappedInputStream, mark, markSupported, read, read, reset, skipabort, abortIfNeeded, releaseavailable, close, readclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreleasepublic static AwsUnsignedChunkedEncodingInputStream.Builder builder()
public static long calculateChecksumContentLength(Algorithm algorithm, String headerName)
algorithm - Algorithm used.headerName - Header name.public static long calculateStreamContentLength(long originalLength,
long defaultChunkSize)
protected byte[] createFinalChunk(byte[] finalChunk)
AwsChunkedEncodingInputStreamcreateFinalChunk in class AwsChunkedEncodingInputStreamfinalChunk - The last byte which will be often 0 byte.protected byte[] createChunk(byte[] chunkData)
AwsChunkedEncodingInputStreamcreateChunk in class AwsChunkedEncodingInputStreamchunkData - The chunk of original data.protected byte[] createChecksumChunkHeader()
createChecksumChunkHeader in class AwsChunkedEncodingInputStreamCopyright © 2022. All rights reserved.