# Uses of Interface
org.springframework.core.io.buffer.DataBuffer

Packages that use DataBuffer
Package
Description
org.springframework.core.codec
`Encoder` and `Decoder` abstractions to convert between a reactive stream of bytes and Java objects.
org.springframework.core.io.buffer
Generic abstraction for working with byte buffer implementations.

## Uses of DataBuffer in org.springframework.core.codec

Methods in org.springframework.core.codec that return DataBuffer
Modifier and Type
Method
Description
`DataBuffer`
DataBufferDecoder.`decode(DataBuffer buffer, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)`
`DataBuffer`
ByteArrayEncoder.`encodeValue(byte[] bytes, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String,Object> hints)`
`DataBuffer`
ByteBufferEncoder.`encodeValue(ByteBuffer byteBuffer, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String,Object> hints)`
`DataBuffer`
CharSequenceEncoder.`encodeValue(CharSequence charSequence, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String,Object> hints)`
`DataBuffer`
DataBufferEncoder.`encodeValue(DataBuffer buffer, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String,Object> hints)`
`default DataBuffer`
Encoder.`encodeValue(T value, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String,Object> hints)`
Encode an Object of type T to a data buffer.
`DataBuffer`
Netty5BufferEncoder.`encodeValue(io.netty5.buffer.Buffer buffer, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String,Object> hints)`
Deprecated, for removal: This API element is subject to removal in a future version.
`DataBuffer`
NettyByteBufEncoder.`encodeValue(io.netty.buffer.ByteBuf byteBuf, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String,Object> hints)`
Methods in org.springframework.core.codec that return types with arguments of type DataBuffer
Modifier and Type
Method
Description
`reactor.core.publisher.Flux<DataBuffer>`
DataBufferDecoder.`decode(Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)`
`final reactor.core.publisher.Flux<DataBuffer>`
AbstractSingleValueEncoder.`encode(Publisher<? extends T> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)`
`protected abstract reactor.core.publisher.Flux<DataBuffer>`
AbstractSingleValueEncoder.`encode(T t, DataBufferFactory dataBufferFactory, ResolvableType type, MimeType mimeType, Map<String,Object> hints)`
Encode `T` to an output `DataBuffer` stream.
`reactor.core.publisher.Flux<DataBuffer>`
ByteArrayEncoder.`encode(Publisher<? extends byte[]> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)`
`reactor.core.publisher.Flux<DataBuffer>`
ByteBufferEncoder.`encode(Publisher<? extends ByteBuffer> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)`
`reactor.core.publisher.Flux<DataBuffer>`
CharSequenceEncoder.`encode(Publisher<? extends CharSequence> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)`
`reactor.core.publisher.Flux<DataBuffer>`
DataBufferEncoder.`encode(Publisher<? extends DataBuffer> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)`
`reactor.core.publisher.Flux<DataBuffer>`
Encoder.`encode(Publisher<? extends T> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)`
Encode a stream of Objects of type `T` into a `DataBuffer` output stream.
`reactor.core.publisher.Flux<DataBuffer>`
Netty5BufferEncoder.`encode(Publisher<? extends io.netty5.buffer.Buffer> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)`
Deprecated, for removal: This API element is subject to removal in a future version.
`reactor.core.publisher.Flux<DataBuffer>`
NettyByteBufEncoder.`encode(Publisher<? extends io.netty.buffer.ByteBuf> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)`
`protected reactor.core.publisher.Flux<DataBuffer>`
ResourceEncoder.`encode(Resource resource, DataBufferFactory bufferFactory, ResolvableType type, MimeType mimeType, Map<String,Object> hints)`
`reactor.core.publisher.Flux<DataBuffer>`
ResourceRegionEncoder.`encode(Publisher<? extends ResourceRegion> input, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)`
Methods in org.springframework.core.codec with parameters of type DataBuffer
Modifier and Type
Method
Description
`final T`
AbstractCharSequenceDecoder.`decode(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)`
`byte[]`
ByteArrayDecoder.`decode(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)`
`ByteBuffer`
ByteBufferDecoder.`decode(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)`
`DataBuffer`
DataBufferDecoder.`decode(DataBuffer buffer, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)`
`default T`
Decoder.`decode(DataBuffer buffer, ResolvableType targetType, MimeType mimeType, Map<String,Object> hints)`
Decode a data buffer to an Object of type T.
`io.netty5.buffer.Buffer`
Netty5BufferDecoder.`decode(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)`
Deprecated, for removal: This API element is subject to removal in a future version.
`io.netty.buffer.ByteBuf`
NettyByteBufDecoder.`decode(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)`
`Resource`
ResourceDecoder.`decode(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)`
`protected T`
AbstractDataBufferDecoder.`decodeDataBuffer(DataBuffer buffer, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)`
Deprecated.
as of 5.2, please implement `Decoder.decode(DataBuffer, ResolvableType, MimeType, Map)` instead
`protected abstract T`
AbstractCharSequenceDecoder.`decodeInternal(DataBuffer dataBuffer, Charset charset)`
Template method that decodes the given data buffer into `T`, given the charset.
`protected CharBuffer`
CharBufferDecoder.`decodeInternal(DataBuffer dataBuffer, Charset charset)`
`protected String`
StringDecoder.`decodeInternal(DataBuffer dataBuffer, Charset charset)`
`DataBuffer`
DataBufferEncoder.`encodeValue(DataBuffer buffer, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String,Object> hints)`
`static void`
Hints.`touchDataBuffer(DataBuffer buffer, Map<String,Object> hints, org.apache.commons.logging.Log logger)`
If the hints contain a `Hints.LOG_PREFIX_HINT` and the given logger has DEBUG level enabled, apply the log prefix as a hint to the given buffer via `DataBufferUtils.touch(DataBuffer, Object)`.
Method parameters in org.springframework.core.codec with type arguments of type DataBuffer
Modifier and Type
Method
Description
`final reactor.core.publisher.Flux<T>`
AbstractCharSequenceDecoder.`decode(Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)`
`reactor.core.publisher.Flux<T>`
AbstractDataBufferDecoder.`decode(Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)`
`reactor.core.publisher.Flux<DataBuffer>`
DataBufferDecoder.`decode(Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)`
`reactor.core.publisher.Flux<T>`
Decoder.`decode(Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)`
Decode a `DataBuffer` input stream into a Flux of `T`.
`reactor.core.publisher.Flux<Resource>`
ResourceDecoder.`decode(Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)`
`reactor.core.publisher.Mono<T>`
AbstractDataBufferDecoder.`decodeToMono(Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)`
`reactor.core.publisher.Mono<T>`
AbstractDecoder.`decodeToMono(Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)`
`reactor.core.publisher.Mono<T>`
Decoder.`decodeToMono(Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)`
Decode a `DataBuffer` input stream into a Mono of `T`.
`reactor.core.publisher.Flux<DataBuffer>`
DataBufferEncoder.`encode(Publisher<? extends DataBuffer> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)`

## Uses of DataBuffer in org.springframework.core.io.buffer

Subinterfaces of DataBuffer in org.springframework.core.io.buffer
Modifier and Type
Interface
Description
`interface`
`CloseableDataBuffer`
Extension of `DataBuffer` that allows for buffers that can be used in a `try`-with-resources statement.
`interface`
`PooledDataBuffer`
Extension of `DataBuffer` that allows for buffers that share a memory pool.
`interface`
`TouchableDataBuffer`
Extension of `DataBuffer` that allows for buffers that can be given hints for debugging purposes.
Classes in org.springframework.core.io.buffer that implement DataBuffer
Modifier and Type
Class
Description
`class`
`DataBufferWrapper`
Provides a convenient implementation of the `DataBuffer` interface that can be overridden to adapt the delegate.
`class`
`DefaultDataBuffer`
Default implementation of the `DataBuffer` interface that uses a `ByteBuffer` internally.
`final class`
`JettyDataBuffer`
Implementation of the `DataBuffer` interface that can wrap a Jetty `Content.Chunk`.
`final class`
`Netty5DataBuffer`
Deprecated, for removal: This API element is subject to removal in a future version.
as of 6.2.18 with no replacement
`class`
`NettyDataBuffer`
Implementation of the `DataBuffer` interface that wraps a Netty 4 `ByteBuf`.
Methods in org.springframework.core.io.buffer with type parameters of type DataBuffer
Modifier and Type
Method
Description
`static <T extends DataBuffer>
T`
DataBufferUtils.`retain(T dataBuffer)`
Retain the given data buffer, if it is a `PooledDataBuffer`.
`static <T extends DataBuffer>
reactor.core.publisher.Flux<T>`
DataBufferUtils.`skipUntilByteCount(Publisher<T> publisher, long maxByteCount)`
Skip buffers from the given `Publisher` until the total byte count reaches the given maximum byte count, or until the publisher is complete.
`static <T extends DataBuffer>
InputStream`
DataBufferUtils.`subscriberInputStream(Publisher<T> publisher, int demand)`
Subscribe to given `Publisher` of `DataBuffer`s, and return an `InputStream` to consume the byte content with.
`static <T extends DataBuffer>
reactor.core.publisher.Flux<T>`
DataBufferUtils.`takeUntilByteCount(Publisher<T> publisher, long maxByteCount)`
Relay buffers from the given `Publisher` until the total byte count reaches the given maximum byte count, or until the publisher is complete.
`static <T extends DataBuffer>
T`
DataBufferUtils.`touch(T dataBuffer, Object hint)`
Associate the given hint with the data buffer if it is a pooled buffer and supports leak tracking.
Methods in org.springframework.core.io.buffer that return DataBuffer
Modifier and Type
Method
Description
`DataBuffer`
DataBufferFactory.`allocateBuffer()`
Deprecated.
as of 6.0, in favor of `DataBufferFactory.allocateBuffer(int)`
`DataBuffer`
DataBufferFactory.`allocateBuffer(int initialCapacity)`
Allocate a data buffer of the given initial capacity.
`DataBuffer`
DataBuffer.`capacity(int capacity)`
Deprecated.
as of 6.0, in favor of `ensureWritable(int)` which has different semantics
`DataBuffer`
DataBufferWrapper.`capacity(int capacity)`
Deprecated.
`DataBuffer`
DefaultDataBuffer.`capacity(int capacity)`
Deprecated.
`DataBuffer`
JettyDataBuffer.`capacity(int capacity)`
Deprecated.
`DataBuffer`
DataBufferWrapper.`dataBuffer()`
Return the wrapped delegate.
`default DataBuffer`
DataBuffer.`ensureCapacity(int capacity)`
Deprecated.
since 6.0, in favor of `ensureWritable(int)`
`DataBuffer`
DataBufferWrapper.`ensureCapacity(int capacity)`
Deprecated.
`DataBuffer`
DataBuffer.`ensureWritable(int capacity)`
Ensure that the current buffer has enough `writableByteCount()` to write the amount of data given as an argument.
`DataBuffer`
DataBufferWrapper.`ensureWritable(int capacity)`
`DataBuffer`
DefaultDataBuffer.`ensureWritable(int length)`
`DataBuffer`
JettyDataBuffer.`ensureWritable(int capacity)`
`DataBuffer`
Netty5DataBuffer.`ensureWritable(int capacity)`
Deprecated, for removal: This API element is subject to removal in a future version.
`DataBuffer`
NettyDataBuffer.`ensureWritable(int capacity)`
`DataBuffer`
DataBufferFactory.`join(List<? extends DataBuffer> dataBuffers)`
Return a new `DataBuffer` composed of the `dataBuffers` elements joined together.
`DataBuffer`
Netty5DataBufferFactory.`join(List<? extends DataBuffer> dataBuffers)`
Deprecated, for removal: This API element is subject to removal in a future version.
Return a new `DataBuffer` composed of the `dataBuffers` elements joined together.
`DataBuffer`
NettyDataBufferFactory.`join(List<? extends DataBuffer> dataBuffers)`
Return a new `DataBuffer` composed of the `dataBuffers` elements joined together.
`DataBuffer`
DataBuffer.`read(byte[] destination)`
Read this buffer's data into the specified destination, starting at the current reading position of this buffer.
`DataBuffer`
DataBuffer.`read(byte[] destination, int offset, int length)`
Read at most `length` bytes of this buffer into the specified destination, starting at the current reading position of this buffer.
`DataBuffer`
DataBufferWrapper.`read(byte[] destination)`
`DataBuffer`
DataBufferWrapper.`read(byte[] destination, int offset, int length)`
`DataBuffer`
JettyDataBuffer.`read(byte[] destination)`
`DataBuffer`
JettyDataBuffer.`read(byte[] destination, int offset, int length)`
`DataBuffer`
DataBuffer.`readPosition(int readPosition)`
Set the position from which this buffer will read.
`DataBuffer`
DataBufferWrapper.`readPosition(int readPosition)`
`DataBuffer`
JettyDataBuffer.`readPosition(int readPosition)`
`DataBuffer`
LimitedDataBufferList.`remove(int index)`
`default DataBuffer`
DataBuffer.`retainedSlice(int index, int length)`
Deprecated.
as of 6.0, in favor of `split(int)` which has different semantics
`DataBuffer`
DataBufferWrapper.`retainedSlice(int index, int length)`
Deprecated.
`DataBuffer`
LimitedDataBufferList.`set(int index, DataBuffer element)`
`DataBuffer`
DataBuffer.`slice(int index, int length)`
Deprecated.
as of 6.0, in favor of `split(int)` which has different semantics
`DataBuffer`
DataBufferWrapper.`slice(int index, int length)`
Deprecated.
`DataBuffer`
JettyDataBuffer.`slice(int index, int length)`
Deprecated.
`DataBuffer`
Netty5DataBuffer.`slice(int index, int length)`
Deprecated.
`DataBuffer`
DataBuffer.`split(int index)`
Splits this data buffer into two at the given index.
`DataBuffer`
DataBufferWrapper.`split(int index)`
`DataBuffer`
JettyDataBuffer.`split(int index)`
`DataBuffer`
Netty5DataBuffer.`split(int index)`
Deprecated, for removal: This API element is subject to removal in a future version.
`DataBuffer`
DataBufferFactory.`wrap(byte[] bytes)`
Wrap the given `byte` array in a `DataBuffer`.
`DataBuffer`
DataBufferFactory.`wrap(ByteBuffer byteBuffer)`
Wrap the given `ByteBuffer` in a `DataBuffer`.
`DataBuffer`
NettyDataBufferFactory.`wrap(byte[] bytes)`
`DataBuffer`
DataBuffer.`write(byte b)`
Write a single byte into this buffer at the current writing position.
`DataBuffer`
DataBuffer.`write(byte[] source)`
Write the given source into this buffer, starting at the current writing position of this buffer.
`DataBuffer`
DataBuffer.`write(byte[] source, int offset, int length)`
Write at most `length` bytes of the given source into this buffer, starting at the current writing position of this buffer.
`default DataBuffer`
DataBuffer.`write(CharSequence charSequence, Charset charset)`
Write the given `CharSequence` using the given `Charset`, starting at the current writing position.
`DataBuffer`
DataBuffer.`write(ByteBuffer... buffers)`
Write one or more `ByteBuffer` to this buffer, starting at the current writing position.
`DataBuffer`
DataBuffer.`write(DataBuffer... buffers)`
Write one or more `DataBuffer`s to this buffer, starting at the current writing position.
`DataBuffer`
DataBufferWrapper.`write(byte b)`
`DataBuffer`
DataBufferWrapper.`write(byte[] source)`
`DataBuffer`
DataBufferWrapper.`write(byte[] source, int offset, int length)`
`DataBuffer`
DataBufferWrapper.`write(CharSequence charSequence, Charset charset)`
`DataBuffer`
DataBufferWrapper.`write(ByteBuffer... buffers)`
`DataBuffer`
DataBufferWrapper.`write(DataBuffer... buffers)`
`DataBuffer`
JettyDataBuffer.`write(byte b)`
`DataBuffer`
JettyDataBuffer.`write(byte[] source)`
`DataBuffer`
JettyDataBuffer.`write(byte[] source, int offset, int length)`
`DataBuffer`
JettyDataBuffer.`write(ByteBuffer... buffers)`
`DataBuffer`
JettyDataBuffer.`write(DataBuffer... buffers)`
`DataBuffer`
Netty5DataBuffer.`write(CharSequence charSequence, Charset charset)`
Deprecated, for removal: This API element is subject to removal in a future version.
`DataBuffer`
NettyDataBuffer.`write(CharSequence charSequence, Charset charset)`
`DataBuffer`
DataBuffer.`writePosition(int writePosition)`
Set the position to which this buffer will write.
`DataBuffer`
DataBufferWrapper.`writePosition(int writePosition)`
`DataBuffer`
JettyDataBuffer.`writePosition(int writePosition)`
Methods in org.springframework.core.io.buffer that return types with arguments of type DataBuffer
Modifier and Type
Method
Description
`static reactor.core.publisher.Mono<DataBuffer>`
DataBufferUtils.`join(Publisher<? extends DataBuffer> dataBuffers)`
Return a new `DataBuffer` composed of joining together the given `dataBuffers` elements.
`static reactor.core.publisher.Mono<DataBuffer>`
DataBufferUtils.`join(Publisher<? extends DataBuffer> buffers, int maxByteCount)`
Variant of `DataBufferUtils.join(Publisher)` that behaves the same way up until the specified max number of bytes to buffer.
`static Publisher<DataBuffer>`
DataBufferUtils.`outputStreamPublisher(Consumer<OutputStream> consumer, DataBufferFactory bufferFactory, Executor executor)`
Create a new `Publisher<DataBuffer>` based on bytes written to a `OutputStream`.
`static Publisher<DataBuffer>`
DataBufferUtils.`outputStreamPublisher(Consumer<OutputStream> consumer, DataBufferFactory bufferFactory, Executor executor, int chunkSize)`
Variant of `DataBufferUtils.outputStreamPublisher(Consumer, DataBufferFactory, Executor)` providing control over the chunk sizes to be produced by the publisher.
`static reactor.core.publisher.Flux<DataBuffer>`
DataBufferUtils.`read(Path path, DataBufferFactory bufferFactory, int bufferSize, OpenOption... options)`
Read bytes from the given file `Path` into a `Flux` of `DataBuffer`s.
`static reactor.core.publisher.Flux<DataBuffer>`
DataBufferUtils.`read(Resource resource, long position, DataBufferFactory bufferFactory, int bufferSize)`
Read the given `Resource` into a `Flux` of `DataBuffer`s starting at the given position.
`static reactor.core.publisher.Flux<DataBuffer>`
DataBufferUtils.`read(Resource resource, DataBufferFactory bufferFactory, int bufferSize)`
Read the given `Resource` into a `Flux` of `DataBuffer`s.
`static reactor.core.publisher.Flux<DataBuffer>`
DataBufferUtils.`readAsynchronousFileChannel(Callable<AsynchronousFileChannel> channelSupplier, long position, DataBufferFactory bufferFactory, int bufferSize)`
Obtain an `AsynchronousFileChannel` from the given supplier, and read it into a `Flux` of `DataBuffer`s, starting at the given position.
`static reactor.core.publisher.Flux<DataBuffer>`
DataBufferUtils.`readAsynchronousFileChannel(Callable<AsynchronousFileChannel> channelSupplier, DataBufferFactory bufferFactory, int bufferSize)`
Obtain a `AsynchronousFileChannel` from the given supplier, and read it into a `Flux` of `DataBuffer`s.
`static reactor.core.publisher.Flux<DataBuffer>`
DataBufferUtils.`readByteChannel(Callable<ReadableByteChannel> channelSupplier, DataBufferFactory bufferFactory, int bufferSize)`
Obtain a `ReadableByteChannel` from the given supplier, and read it into a `Flux` of `DataBuffer`s.
`static reactor.core.publisher.Flux<DataBuffer>`
DataBufferUtils.`readInputStream(Callable<InputStream> inputStreamSupplier, DataBufferFactory bufferFactory, int bufferSize)`
Obtain an `InputStream` from the given supplier, and read it into a `Flux` of `DataBuffer`s.
`static Consumer<DataBuffer>`
DataBufferUtils.`releaseConsumer()`
Return a consumer that calls `DataBufferUtils.release(DataBuffer)` on all passed data buffers.
`static reactor.core.publisher.Flux<DataBuffer>`
DataBufferUtils.`write(Publisher<? extends DataBuffer> source, AsynchronousFileChannel channel, long position)`
Write the given stream of `DataBuffers` to the given `AsynchronousFileChannel`.
`static reactor.core.publisher.Flux<DataBuffer>`
DataBufferUtils.`write(Publisher<DataBuffer> source, OutputStream outputStream)`
Write the given stream of `DataBuffers` to the given `OutputStream`.
`static reactor.core.publisher.Flux<DataBuffer>`
DataBufferUtils.`write(Publisher<DataBuffer> source, AsynchronousFileChannel channel)`
Write the given stream of `DataBuffers` to the given `AsynchronousFileChannel`.
`static reactor.core.publisher.Flux<DataBuffer>`
DataBufferUtils.`write(Publisher<DataBuffer> source, WritableByteChannel channel)`
Write the given stream of `DataBuffers` to the given `WritableByteChannel`.
Methods in org.springframework.core.io.buffer with parameters of type DataBuffer
Modifier and Type
Method
Description
`void`
LimitedDataBufferList.`add(int index, DataBuffer buffer)`
`boolean`
LimitedDataBufferList.`add(DataBuffer buffer)`
`int`
DataBufferUtils.Matcher.`match(DataBuffer dataBuffer)`
Find the first matching delimiter and return the index of the last byte of the delimiter, or `-1` if not found.
`static boolean`
DataBufferUtils.`release(DataBuffer dataBuffer)`
Release the given data buffer.
`DataBuffer`
LimitedDataBufferList.`set(int index, DataBuffer element)`
`static io.netty5.buffer.Buffer`
Netty5DataBufferFactory.`toBuffer(DataBuffer buffer)`
Deprecated, for removal: This API element is subject to removal in a future version.
Return the given Netty `DataBuffer` as a `Buffer`.
`static io.netty.buffer.ByteBuf`
NettyDataBufferFactory.`toByteBuf(DataBuffer dataBuffer)`
Return the given Netty `DataBuffer` as a `ByteBuf`.
`DataBuffer`
DataBuffer.`write(DataBuffer... buffers)`
Write one or more `DataBuffer`s to this buffer, starting at the current writing position.
`DataBuffer`
DataBufferWrapper.`write(DataBuffer... buffers)`
`DefaultDataBuffer`
DefaultDataBuffer.`write(DataBuffer... dataBuffers)`
`DataBuffer`
JettyDataBuffer.`write(DataBuffer... buffers)`
`Netty5DataBuffer`
Netty5DataBuffer.`write(DataBuffer... dataBuffers)`
Deprecated, for removal: This API element is subject to removal in a future version.
`NettyDataBuffer`
NettyDataBuffer.`write(DataBuffer... dataBuffers)`
Method parameters in org.springframework.core.io.buffer with type arguments of type DataBuffer
Modifier and Type
Method
Description
`boolean`
LimitedDataBufferList.`addAll(int index, Collection<? extends DataBuffer> collection)`
`boolean`
LimitedDataBufferList.`addAll(Collection<? extends DataBuffer> collection)`
`DataBuffer`
DataBufferFactory.`join(List<? extends DataBuffer> dataBuffers)`
Return a new `DataBuffer` composed of the `dataBuffers` elements joined together.
`static reactor.core.publisher.Mono<DataBuffer>`
DataBufferUtils.`join(Publisher<? extends DataBuffer> dataBuffers)`
Return a new `DataBuffer` composed of joining together the given `dataBuffers` elements.
`static reactor.core.publisher.Mono<DataBuffer>`
DataBufferUtils.`join(Publisher<? extends DataBuffer> buffers, int maxByteCount)`
Variant of `DataBufferUtils.join(Publisher)` that behaves the same way up until the specified max number of bytes to buffer.
`DefaultDataBuffer`
DefaultDataBufferFactory.`join(List<? extends DataBuffer> dataBuffers)`
Return a new `DataBuffer` composed of the `dataBuffers` elements joined together.
`JettyDataBuffer`
JettyDataBufferFactory.`join(List<? extends DataBuffer> dataBuffers)`
`DataBuffer`
Netty5DataBufferFactory.`join(List<? extends DataBuffer> dataBuffers)`
Deprecated, for removal: This API element is subject to removal in a future version.
Return a new `DataBuffer` composed of the `dataBuffers` elements joined together.
`DataBuffer`
NettyDataBufferFactory.`join(List<? extends DataBuffer> dataBuffers)`
Return a new `DataBuffer` composed of the `dataBuffers` elements joined together.
`boolean`
LimitedDataBufferList.`removeIf(Predicate<? super DataBuffer> filter)`
`static reactor.core.publisher.Flux<DataBuffer>`
DataBufferUtils.`write(Publisher<? extends DataBuffer> source, AsynchronousFileChannel channel, long position)`
Write the given stream of `DataBuffers` to the given `AsynchronousFileChannel`.
`static reactor.core.publisher.Flux<DataBuffer>`
DataBufferUtils.`write(Publisher<DataBuffer> source, OutputStream outputStream)`
Write the given stream of `DataBuffers` to the given `OutputStream`.
`static reactor.core.publisher.Flux<DataBuffer>`
DataBufferUtils.`write(Publisher<DataBuffer> source, AsynchronousFileChannel channel)`
Write the given stream of `DataBuffers` to the given `AsynchronousFileChannel`.
`static reactor.core.publisher.Flux<DataBuffer>`
DataBufferUtils.`write(Publisher<DataBuffer> source, WritableByteChannel channel)`
Write the given stream of `DataBuffers` to the given `WritableByteChannel`.
`static reactor.core.publisher.Mono<Void>`
DataBufferUtils.`write(Publisher<DataBuffer> source, Path destination, OpenOption... options)`
Write the given stream of `DataBuffers` to the given file `Path`.
Constructors in org.springframework.core.io.buffer with parameters of type DataBuffer
Modifier
Constructor
Description
``
`DataBufferWrapper(DataBuffer delegate)`
Create a new `DataBufferWrapper` that wraps the given buffer.