Package org.springframework.core.io.buffer
@NonNullApi
@NonNullFields
package org.springframework.core.io.buffer
Generic abstraction for working with byte buffer implementations.
-
ClassDescriptionExtension of
DataBufferthat allows for buffers that can be used in atry-with-resources statement.Basic abstraction over byte buffers.A dedicated iterator type that ensures the lifecycle of iteratedByteBufferelements.A factory forDataBuffers, allowing for allocation and wrapping of data buffers.Exception that indicates the cumulative number of bytes consumed from a stream ofDataBuffer's exceeded some pre-configured limit.Utility class for working withDataBuffers.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.Provides a convenient implementation of theDataBufferinterface that can be overridden to adapt the delegate.Default implementation of theDataBufferinterface that uses aByteBufferinternally.Default implementation of theDataBufferFactoryinterface.Implementation of theDataBufferinterface that can wrap a JettyContent.Chunk.Implementation of theDataBufferFactoryinterface that createsJettyDataBufferinstances.CustomListto collect data buffers with and enforce a limit on the total number of bytes buffered.Implementation of theDataBufferinterface that wraps a Netty 5Buffer.Implementation of theDataBufferFactoryinterface based on a Netty 5BufferAllocator.Implementation of theDataBufferinterface that wraps a Netty 4ByteBuf.Implementation of theDataBufferFactoryinterface based on a Netty 4ByteBufAllocator.Extension ofDataBufferthat allows for buffers that share a memory pool.Extension ofDataBufferthat allows for buffers that can be given hints for debugging purposes.