程序包 org.springframework.core.io.buffer
Generic abstraction for working with byte buffer implementations.
接口概要 接口 说明 DataBuffer Basic abstraction over byte buffers.DataBufferFactory A factory forDataBuffers
, allowing for allocation and wrapping of data buffers.DataBufferUtils.Matcher Contract to find delimiter(s) against one or more data buffers that can be passed one at a time to theDataBufferUtils.Matcher.match(DataBuffer)
method.PooledDataBuffer Extension ofDataBuffer
that allows for buffer that share a memory pool.类概要 类 说明 DataBufferUtils Utility class for working withDataBuffers
.DataBufferWrapper Provides a convenient implementation of theDataBuffer
interface that can be overridden to adapt the delegate.DefaultDataBuffer Default implementation of theDataBuffer
interface that uses aByteBuffer
internally. with separate read and write positions.DefaultDataBufferFactory Default implementation of theDataBufferFactory
interface.LimitedDataBufferList CustomList
to collect data buffers with and enforce a limit on the total number of bytes buffered.NettyDataBuffer Implementation of theDataBuffer
interface that wraps a NettyByteBuf
.NettyDataBufferFactory Implementation of theDataBufferFactory
interface based on a NettyByteBufAllocator
.异常错误概要 异常错误 说明 DataBufferLimitException Exception that indicates the cumulative number of bytes consumed from a stream ofDataBuffer
's exceeded some pre-configured limit.