Package software.amazon.awssdk.http
Interface ContentStreamProvider
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ContentStreamProvider
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 toclose()
and free any resources acquired by the previous stream. The last stream returned bynewStream()
} will be closed by the SDK.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStream
newStream()
-
-
-
Method Detail
-
newStream
InputStream newStream()
- Returns:
- The content stream.
-
-