Class AwsCompressionInputStream
- 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.AwsCompressionInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Releasable
public final class AwsCompressionInputStream extends AwsChunkedInputStream
A wrapper class of InputStream that implements compression in chunks.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AwsCompressionInputStream.Builder
-
Field Summary
-
Fields inherited from class software.amazon.awssdk.core.internal.io.AwsChunkedInputStream
currentChunkIterator, DEFAULT_CHUNK_SIZE, is, isAtStart, isTerminating, log, SKIP_BUFFER_SIZE, underlyingStreamBuffer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AwsCompressionInputStream.Builder
builder()
void
mark(int readlimit)
The readlimit parameter is ignored.int
read(byte[] b, int off, int len)
void
reset()
Reset the stream, either by resetting the wrapped stream or using the buffer created by this class.-
Methods inherited from class software.amazon.awssdk.core.internal.io.AwsChunkedInputStream
getWrappedInputStream, markSupported, read, skip
-
Methods inherited from class software.amazon.awssdk.core.io.SdkInputStream
abort, abortIfNeeded, release
-
Methods inherited from class java.io.InputStream
available, close, read
-
-
-
-
Method Detail
-
builder
public static AwsCompressionInputStream.Builder builder()
-
read
public int read(byte[] b, int off, int len) throws IOException
- Overrides:
read
in classInputStream
- Throws:
IOException
-
mark
public void mark(int readlimit)
The readlimit parameter is ignored.- Overrides:
mark
in classInputStream
-
reset
public void reset() throws IOException
Reset the stream, either by resetting the wrapped stream or using the buffer created by this class.- Overrides:
reset
in classInputStream
- Throws:
IOException
-
-