Class AwsChunkedInputStream
java.lang.Object
java.io.InputStream
software.amazon.awssdk.core.io.SdkInputStream
software.amazon.awssdk.core.internal.io.AwsChunkedInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable,Releasable
- Direct Known Subclasses:
AwsChunkedEncodingInputStream,AwsCompressionInputStream
A wrapper of InputStream that implements streaming in chunks.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected software.amazon.awssdk.core.internal.io.ChunkContentIteratorIterator on the current chunk.static final intprotected InputStreamprotected booleanprotected booleanprotected static final Loggerprotected static final intprotected software.amazon.awssdk.core.internal.io.UnderlyingStreamBufferIterator on the buffer of the underlying stream, Null if the wrapped stream is marksupported, otherwise it will be initialized when this wrapper is marked. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected InputStreamReturns the underlying input stream, if any, from the subclass; or null if there is no underlying input stream.booleanintread()longskip(long n) Methods inherited from class software.amazon.awssdk.core.io.SdkInputStream
abort, abortIfNeeded, release
-
Field Details
-
DEFAULT_CHUNK_SIZE
public static final int DEFAULT_CHUNK_SIZE- See Also:
-
SKIP_BUFFER_SIZE
protected static final int SKIP_BUFFER_SIZE- See Also:
-
log
-
is
-
currentChunkIterator
protected software.amazon.awssdk.core.internal.io.ChunkContentIterator currentChunkIteratorIterator on the current chunk. -
underlyingStreamBuffer
protected software.amazon.awssdk.core.internal.io.UnderlyingStreamBuffer underlyingStreamBufferIterator on the buffer of the underlying stream, Null if the wrapped stream is marksupported, otherwise it will be initialized when this wrapper is marked. -
isAtStart
protected boolean isAtStart -
isTerminating
protected boolean isTerminating
-
-
Constructor Details
-
AwsChunkedInputStream
public AwsChunkedInputStream()
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classInputStream- See Also:
-
getWrappedInputStream
Description copied from class:SdkInputStreamReturns the underlying input stream, if any, from the subclass; or null if there is no underlying input stream.- Specified by:
getWrappedInputStreamin classSdkInputStream
-