DataBufferUtils
DataBufferUtils offers a number of utility methods to operate on data buffers:
-
Join a stream of data buffers into a single buffer possibly with zero copy, e.g. via composite buffers, if that’s supported by the underlying byte buffer API.
-
Turn
InputStreamor NIOChannelintoFlux<DataBuffer>, and vice versa aPublisher<DataBuffer>intoOutputStreamor NIOChannel. -
Methods to release or retain a
DataBufferif the buffer is an instance ofPooledDataBuffer. -
Skip or take from a stream of bytes until a specific byte count.