@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 and Description |
|---|
BufferingContentStreamProvider(ContentStreamProvider delegate,
Long expectedLength) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
newStream() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfromByteArray, fromByteArrayUnsafe, fromInputStream, fromInputStreamSupplier, fromString, fromUtf8Stringpublic BufferingContentStreamProvider(ContentStreamProvider delegate, Long expectedLength)
public InputStream newStream()
newStream in interface ContentStreamProviderCopyright © 2026. All rights reserved.