public class AwsChunkDecodingInputStream extends InputStream
The original stream looks like this (newlines are CRLF):
5;chunk-signature=7ece820edcf094ce1ef6d643c8db60b67913e28831d9b0430efd2b56a9deec5e 12345 0;chunk-signature=ee2c094d7162170fcac17d2c76073cd834b0488bfe52e89e48599b8115c7ffa2
The format of each chunk of data is:
[hex-encoded-number-of-bytes-in-chunk];chunk-signature=[sha256-signature][crlf] [payload-bytes-of-this-chunk][crlf]
| Constructor and Description |
|---|
AwsChunkDecodingInputStream(InputStream source)
Constructs a new
AwsChunkDecodingInputStream. |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
read() |
available, mark, markSupported, read, read, reset, skippublic AwsChunkDecodingInputStream(InputStream source)
AwsChunkDecodingInputStream.source - The InputStream to wrap.public int read()
throws IOException
read in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionCopyright © 2019 Adobe. All rights reserved.