Class SdkLengthAwareInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
software.amazon.awssdk.http.auth.aws.internal.signer.io.SdkLengthAwareInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Direct Known Subclasses:
ChunkInputStream
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.-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.FilterInputStream
close, markSupported, read
-
Constructor Details
-
SdkLengthAwareInputStream
-
-
Method Details
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classFilterInputStream
- Throws:
IOException
-
available
- Overrides:
available
in classFilterInputStream
- Throws:
IOException
-
mark
public void mark(int readlimit) - Overrides:
mark
in classFilterInputStream
-
reset
- Overrides:
reset
in classFilterInputStream
- Throws:
IOException
-
remaining
public long remaining()
-