Package software.amazon.awssdk.http
Interface ContentStreamProvider
- All Known Implementing Classes:
CompressionContentStreamProvider
,FileContentStreamProvider
,ResettableContentStreamProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Provides the content stream of a request.
Each call to to the newStream()
method must result in a stream whose position is at the beginning of the content.
Implementations may return a new stream or the same stream for each call. If returning a new stream, the implementation
must ensure to close()
and free any resources acquired by the previous stream. The last stream returned by newStream()
} will be closed by the SDK.
-
Method Summary
-
Method Details
-
newStream
InputStream newStream()- Returns:
- The content stream.
-