Browse Source

Add reference docs for DataBufferUtils.compose

Issue: SPR-16365
pull/1503/merge
Arjen Poutsma 8 years ago
parent
commit
e39bf87b07
  1. 8
      src/docs/asciidoc/core/core-databuffer-codec.adoc

8
src/docs/asciidoc/core/core-databuffer-codec.adoc

@ -145,8 +145,12 @@ It contains methods for reading a `Flux` of `DataBuffer` objects from an `InputS @@ -145,8 +145,12 @@ It contains methods for reading a `Flux` of `DataBuffer` objects from an `InputS
`DataBufferUtils` also exposes `retain` and `release` methods that operate on plain `DataBuffer`
instances (so that casting to a `PooledDataBuffer` is not required).
Additionally, `DataBufferUtils` exposes `compose`, which merges a stream of data buffers into one.
For instance, this method can be used to convert the entire HTTP body into a single buffer (and
from that, a `String`, or `InputStream`).
This is particularly useful when dealing with older, blocking APIs.
Note, however, that this puts the entire body in memory, and therefore uses more memory than a pure
streaming solution would.
[codecs]
== Codecs

Loading…
Cancel
Save