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
Constructors -
Method Summary
Methods inherited from class java.io.FilterInputStream
close, markSupported, read
-
Constructor Details
-
SdkLengthAwareInputStream
-
-
Method Details
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classFilterInputStream- Throws:
IOException
-
available
- Overrides:
availablein classFilterInputStream- Throws:
IOException
-
mark
public void mark(int readlimit) - Overrides:
markin classFilterInputStream
-
reset
- Overrides:
resetin classFilterInputStream- Throws:
IOException
-
remaining
public long remaining()
-