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
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.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class software.amazon.awssdk.core.io.SdkFilterInputStream
available, close, mark, markSupported, release, resetMethods inherited from class java.io.FilterInputStream
read
-
Constructor Details
-
BytesWrittenTrackingInputStream
-
-
Method Details
-
read
- Overrides:
readin classSdkFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classSdkFilterInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classSdkFilterInputStream- Throws:
IOException
-