Class BufferingContentStreamProvider
java.lang.Object
software.amazon.awssdk.core.internal.sync.BufferingContentStreamProvider
- All Implemented Interfaces:
ContentStreamProvider
@NotThreadSafe
public final class BufferingContentStreamProvider
extends Object
implements ContentStreamProvider
ContentStreamProvider implementation that buffers the data stream data to memory as it's read. Once the underlying
stream is read fully, all subsequent calls to newStream() will use the buffered data.-
Constructor Summary
ConstructorsConstructorDescriptionBufferingContentStreamProvider(ContentStreamProvider delegate, Long expectedLength) -
Method Summary
-
Constructor Details
-
BufferingContentStreamProvider
-
-
Method Details
-
newStream
- Specified by:
newStreamin interfaceContentStreamProvider- Returns:
- The content stream.
-