Class BytesWrittenTrackingInputStream

java.lang.Object
java.io.InputStream
java.io.FilterInputStream
software.amazon.awssdk.core.io.SdkFilterInputStream
software.amazon.awssdk.core.internal.metrics.BytesWrittenTrackingInputStream
All Implemented Interfaces:
Closeable, AutoCloseable, Releasable

@SdkInternalApi public final class BytesWrittenTrackingInputStream extends SdkFilterInputStream
An input stream that tracks the number of bytes read from it. When the HTTP client reads from this stream to send the request body, we count those bytes as "written" to the service.