Module io.jooby
Package io.jooby.buffer
package io.jooby.buffer
Generic abstraction for working with byte buffer implementations.
Copy from https://github.com/spring-projects/spring-framework/tree/main/spring-core/src/main/java/org/springframework/core/io/buffer.
- Copy all package inside io.jooby.byffer
- remove all Assert/ObjectUtils import references
- remove Netty5DataBuffer references
- replace reactive stream classes references by JDK reactive streams
- DataBufferUtils is a limited version of original - remove Deprecated methods
- Remove all deprecated since 6.0 from DataBuffer and DataBufferFactory
-
ClassDescriptionExtension of
DataBuffer
that 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 iteratedByteBuffer
elements.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.Provides a convenient implementation of theDataBuffer
interface that can be overridden to adapt the delegate.Default implementation of theDataBuffer
interface that uses aByteBuffer
internally.Default implementation of theDataBufferFactory
interface.CustomList
to collect data buffers with and enforce a limit on the total number of bytes buffered.Extension ofDataBuffer
that allows for buffers that share a memory pool.Extension ofDataBuffer
that allows for buffers that can be given hints for debugging purposes.