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, skip
abort, abortIfNeeded, release
available, close, read
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
release
public 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)
AwsChunkedEncodingInputStream
createFinalChunk
in class AwsChunkedEncodingInputStream
finalChunk
- The last byte which will be often 0 byte.protected byte[] createChunk(byte[] chunkData)
AwsChunkedEncodingInputStream
createChunk
in class AwsChunkedEncodingInputStream
chunkData
- The chunk of original data.protected byte[] createChecksumChunkHeader()
createChecksumChunkHeader
in class AwsChunkedEncodingInputStream
Copyright © 2022. All rights reserved.