# Package org.springframework.core.io.buffer

@NonNullApi @NonNullFields package org.springframework.core.io.buffer
Generic abstraction for working with byte buffer implementations.

Related Packages
Package
Description
org.springframework.core.io
Generic abstraction for (file-based) resources, used throughout the framework.
org.springframework.core.io.support
Support classes for Spring's resource abstraction.
Class
Description
CloseableDataBuffer
Extension of `DataBuffer` that allows for buffers that can be used in a `try`-with-resources statement.
DataBuffer
Basic abstraction over byte buffers.
DataBuffer.ByteBufferIterator
A dedicated iterator type that ensures the lifecycle of iterated `ByteBuffer` elements.
DataBufferFactory
A factory for `DataBuffers`, allowing for allocation and wrapping of data buffers.
DataBufferLimitException
Exception that indicates the cumulative number of bytes consumed from a stream of `DataBuffer`'s exceeded some pre-configured limit.
DataBufferUtils
Utility class for working with `DataBuffers`.
DataBufferUtils.Matcher
Contract to find delimiter(s) against one or more data buffers that can be passed one at a time to the `DataBufferUtils.Matcher.match(DataBuffer)` method.
DataBufferWrapper
Provides a convenient implementation of the `DataBuffer` interface that can be overridden to adapt the delegate.
DefaultDataBuffer
Default implementation of the `DataBuffer` interface that uses a `ByteBuffer` internally.
DefaultDataBufferFactory
Default implementation of the `DataBufferFactory` interface.
JettyDataBuffer
Implementation of the `DataBuffer` interface that can wrap a Jetty `Content.Chunk`.
JettyDataBufferFactory
Implementation of the `DataBufferFactory` interface that creates `JettyDataBuffer` instances.
LimitedDataBufferList
Custom `List` to collect data buffers with and enforce a limit on the total number of bytes buffered.
Netty5DataBuffer
Implementation of the `DataBuffer` interface that wraps a Netty 5 `Buffer`.
Netty5DataBufferFactory
Implementation of the `DataBufferFactory` interface based on a Netty 5 `BufferAllocator`.
NettyDataBuffer
Implementation of the `DataBuffer` interface that wraps a Netty 4 `ByteBuf`.
NettyDataBufferFactory
Implementation of the `DataBufferFactory` interface based on a Netty 4 `ByteBufAllocator`.
PooledDataBuffer
Extension of `DataBuffer` that allows for buffers that share a memory pool.
TouchableDataBuffer
Extension of `DataBuffer` that allows for buffers that can be given hints for debugging purposes.