Class SdkLengthAwareInputStream

java.lang.Object
java.io.InputStream
java.io.FilterInputStream
software.amazon.awssdk.core.internal.io.SdkLengthAwareInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class SdkLengthAwareInputStream extends FilterInputStream
An InputStream that is aware of its length. The main purpose of this class is to support truncating streams to a length that is shorter than the total length of the stream.