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
ContentStreamProviderimplementation that buffers the data stream data to memory as it's read. Once the underlying stream is read fully, all subsequent calls tonewStream()will use the buffered data.
-
-
Constructor Summary
Constructors Constructor Description BufferingContentStreamProvider(ContentStreamProvider delegate, Long expectedLength)
-
-
-
Constructor Detail
-
BufferingContentStreamProvider
public BufferingContentStreamProvider(ContentStreamProvider delegate, Long expectedLength)
-
-
Method Detail
-
newStream
public InputStream newStream()
- Specified by:
newStreamin interfaceContentStreamProvider
-
-