Class AwsChunkedEncodingInputStream
java.lang.Object
java.io.InputStream
software.amazon.awssdk.core.io.SdkInputStream
software.amazon.awssdk.core.internal.io.AwsChunkedInputStream
software.amazon.awssdk.core.internal.io.AwsChunkedEncodingInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable,Releasable
- Direct Known Subclasses:
AwsSignedChunkedEncodingInputStream,AwsUnsignedChunkedEncodingInputStream
A wrapper of InputStream that implements pseudo-chunked-encoding.
Each chunk will be buffered for the calculation of the chunk signature
which is added at the head of each chunk.
The default chunk size cannot be customized, since we need to calculate the expected encoded stream length before reading the wrapped stream.
This class will use the mark() & reset() of the wrapped InputStream if they are supported, otherwise it will create a buffer for bytes read from the wrapped stream.
The default chunk size cannot be customized, since we need to calculate the expected encoded stream length before reading the wrapped stream.
This class will use the mark() & reset() of the wrapped InputStream if they are supported, otherwise it will create a buffer for bytes read from the wrapped stream.
-
Field Summary
Fields inherited from class software.amazon.awssdk.core.internal.io.AwsChunkedInputStream
DEFAULT_CHUNK_SIZE -
Method Summary
Methods inherited from class software.amazon.awssdk.core.internal.io.AwsChunkedInputStream
markSupported, read, skipMethods inherited from class software.amazon.awssdk.core.io.SdkInputStream
releaseMethods inherited from class java.io.InputStream
available, close, read
-
Method Details
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
mark
public void mark(int readlimit) The readlimit parameter is ignored.- Overrides:
markin classInputStream
-
reset
Reset the stream, either by resetting the wrapped stream or using the buffer created by this class.- Overrides:
resetin classInputStream- Throws:
IOException
-