| Package | Description | 
|---|---|
| org.springframework.core.codec | |
| org.springframework.core.io.buffer | Generic abstraction for working with byte buffer implementations. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected DataBuffer | DataBufferDecoder. decodeDataBuffer(DataBuffer buffer,
                ResolvableType elementType,
                MimeType mimeType,
                Map<String,Object> hints) | 
| Modifier and Type | Method and Description | 
|---|---|
| reactor.core.publisher.Flux<DataBuffer> | DataBufferDecoder. decode(org.reactivestreams.Publisher<DataBuffer> input,
      ResolvableType elementType,
      MimeType mimeType,
      Map<String,Object> hints) | 
| reactor.core.publisher.Flux<DataBuffer> | ByteArrayEncoder. encode(org.reactivestreams.Publisher<? extends byte[]> inputStream,
      DataBufferFactory bufferFactory,
      ResolvableType elementType,
      MimeType mimeType,
      Map<String,Object> hints) | 
| reactor.core.publisher.Flux<DataBuffer> | ByteBufferEncoder. encode(org.reactivestreams.Publisher<? extends ByteBuffer> inputStream,
      DataBufferFactory bufferFactory,
      ResolvableType elementType,
      MimeType mimeType,
      Map<String,Object> hints) | 
| reactor.core.publisher.Flux<DataBuffer> | CharSequenceEncoder. encode(org.reactivestreams.Publisher<? extends CharSequence> inputStream,
      DataBufferFactory bufferFactory,
      ResolvableType elementType,
      MimeType mimeType,
      Map<String,Object> hints) | 
| reactor.core.publisher.Flux<DataBuffer> | DataBufferEncoder. encode(org.reactivestreams.Publisher<? extends DataBuffer> inputStream,
      DataBufferFactory bufferFactory,
      ResolvableType elementType,
      MimeType mimeType,
      Map<String,Object> hints) | 
| reactor.core.publisher.Flux<DataBuffer> | ResourceRegionEncoder. encode(org.reactivestreams.Publisher<? extends ResourceRegion> input,
      DataBufferFactory bufferFactory,
      ResolvableType elementType,
      MimeType mimeType,
      Map<String,Object> hints) | 
| reactor.core.publisher.Flux<DataBuffer> | Encoder. encode(org.reactivestreams.Publisher<? extends T> inputStream,
      DataBufferFactory bufferFactory,
      ResolvableType elementType,
      MimeType mimeType,
      Map<String,Object> hints)Encode a stream of Objects of type  Tinto aDataBufferoutput stream. | 
| reactor.core.publisher.Flux<DataBuffer> | AbstractSingleValueEncoder. encode(org.reactivestreams.Publisher<? extends T> 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) | 
| protected abstract reactor.core.publisher.Flux<DataBuffer> | AbstractSingleValueEncoder. encode(T t,
      DataBufferFactory dataBufferFactory,
      ResolvableType type,
      MimeType mimeType,
      Map<String,Object> hints)Encode  Tto an outputDataBufferstream. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected DataBuffer | DataBufferDecoder. decodeDataBuffer(DataBuffer buffer,
                ResolvableType elementType,
                MimeType mimeType,
                Map<String,Object> hints) | 
| protected ByteBuffer | ByteBufferDecoder. decodeDataBuffer(DataBuffer dataBuffer,
                ResolvableType elementType,
                MimeType mimeType,
                Map<String,Object> hints) | 
| protected String | StringDecoder. decodeDataBuffer(DataBuffer dataBuffer,
                ResolvableType elementType,
                MimeType mimeType,
                Map<String,Object> hints) | 
| protected Resource | ResourceDecoder. decodeDataBuffer(DataBuffer dataBuffer,
                ResolvableType elementType,
                MimeType mimeType,
                Map<String,Object> hints) | 
| protected abstract T | AbstractDataBufferDecoder. decodeDataBuffer(DataBuffer buffer,
                ResolvableType elementType,
                MimeType mimeType,
                Map<String,Object> hints)How to decode a  DataBufferto the target element type. | 
| protected byte[] | ByteArrayDecoder. decodeDataBuffer(DataBuffer dataBuffer,
                ResolvableType elementType,
                MimeType mimeType,
                Map<String,Object> hints) | 
| Modifier and Type | Method and Description | 
|---|---|
| reactor.core.publisher.Flux<DataBuffer> | DataBufferDecoder. decode(org.reactivestreams.Publisher<DataBuffer> input,
      ResolvableType elementType,
      MimeType mimeType,
      Map<String,Object> hints) | 
| reactor.core.publisher.Flux<String> | StringDecoder. decode(org.reactivestreams.Publisher<DataBuffer> input,
      ResolvableType elementType,
      MimeType mimeType,
      Map<String,Object> hints) | 
| reactor.core.publisher.Flux<Resource> | ResourceDecoder. decode(org.reactivestreams.Publisher<DataBuffer> inputStream,
      ResolvableType elementType,
      MimeType mimeType,
      Map<String,Object> hints) | 
| reactor.core.publisher.Flux<T> | AbstractDataBufferDecoder. decode(org.reactivestreams.Publisher<DataBuffer> input,
      ResolvableType elementType,
      MimeType mimeType,
      Map<String,Object> hints) | 
| reactor.core.publisher.Flux<T> | Decoder. decode(org.reactivestreams.Publisher<DataBuffer> inputStream,
      ResolvableType elementType,
      MimeType mimeType,
      Map<String,Object> hints)Decode a  DataBufferinput stream into a Flux ofT. | 
| reactor.core.publisher.Mono<T> | AbstractDecoder. decodeToMono(org.reactivestreams.Publisher<DataBuffer> inputStream,
            ResolvableType elementType,
            MimeType mimeType,
            Map<String,Object> hints) | 
| reactor.core.publisher.Mono<T> | AbstractDataBufferDecoder. decodeToMono(org.reactivestreams.Publisher<DataBuffer> input,
            ResolvableType elementType,
            MimeType mimeType,
            Map<String,Object> hints) | 
| reactor.core.publisher.Mono<T> | Decoder. decodeToMono(org.reactivestreams.Publisher<DataBuffer> inputStream,
            ResolvableType elementType,
            MimeType mimeType,
            Map<String,Object> hints)Decode a  DataBufferinput stream into a Mono ofT. | 
| reactor.core.publisher.Flux<DataBuffer> | DataBufferEncoder. encode(org.reactivestreams.Publisher<? extends DataBuffer> inputStream,
      DataBufferFactory bufferFactory,
      ResolvableType elementType,
      MimeType mimeType,
      Map<String,Object> hints) | 
| Modifier and Type | Interface and Description | 
|---|---|
| interface  | PooledDataBufferExtension of  DataBufferthat allows for buffer that share
 a memory pool. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | DefaultDataBufferDefault implementation of the  DataBufferinterface that uses aByteBufferinternally. | 
| class  | NettyDataBufferImplementation of the  DataBufferinterface that wraps a NettyByteBuf. | 
| Modifier and Type | Method and Description | 
|---|---|
| static <T extends DataBuffer> | DataBufferUtils. retain(T dataBuffer)Retain the given data buffer, it it is a  PooledDataBuffer. | 
| Modifier and Type | Method and Description | 
|---|---|
| DataBuffer | DataBufferFactory. allocateBuffer()Allocate a data buffer of a default initial capacity. | 
| DataBuffer | DataBufferFactory. allocateBuffer(int initialCapacity)Allocate a data buffer of the given initial capacity. | 
| DataBuffer | DataBuffer. capacity(int capacity)Set the number of bytes that this buffer can contain. | 
| default DataBuffer | DataBuffer. ensureCapacity(int capacity)Ensure that the current buffer has enough  writableByteCount()to write the amount of data given as an argument. | 
| DataBuffer | DefaultDataBuffer. ensureCapacity(int length) | 
| DataBuffer | NettyDataBuffer. ensureCapacity(int capacity) | 
| DataBuffer | DataBufferFactory. join(List<? extends DataBuffer> dataBuffers)Return a new  DataBuffercomposed of thedataBufferselements joined together. | 
| DataBuffer | NettyDataBufferFactory. join(List<? extends DataBuffer> dataBuffers)Return a new  DataBuffercomposed of thedataBufferselements 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  lengthbytes of this buffer into the specified destination,
 starting at the current reading position of this buffer. | 
| DataBuffer | DataBuffer. readPosition(int readPosition)Set the position from which this buffer will read. | 
| DataBuffer | LimitedDataBufferList. remove(int index) | 
| DataBuffer | LimitedDataBufferList. set(int index,
   DataBuffer element) | 
| DataBuffer | DataBuffer. slice(int index,
     int length)Create a new  DataBufferwhose contents is a shared subsequence of this
 data buffer's content. | 
| DataBuffer | DataBufferFactory. wrap(byte[] bytes)Wrap the given  bytearray in aDataBuffer. | 
| DataBuffer | NettyDataBufferFactory. wrap(byte[] bytes) | 
| DataBuffer | DataBufferFactory. wrap(ByteBuffer byteBuffer)Wrap the given  ByteBufferin aDataBuffer. | 
| 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  lengthbytes of the given source into this buffer, starting
 at the current writing position of this buffer. | 
| DataBuffer | DataBuffer. write(ByteBuffer... buffers)Write one or more  ByteBufferto this buffer, starting at the current
 writing position. | 
| default DataBuffer | DataBuffer. write(CharSequence charSequence,
     Charset charset)Write the given  CharSequenceusing the givenCharset,
 starting at the current writing position. | 
| DataBuffer | NettyDataBuffer. write(CharSequence charSequence,
     Charset charset) | 
| DataBuffer | DataBuffer. write(DataBuffer... buffers)Write one or more  DataBuffers to this buffer, starting at the current
 writing position. | 
| DataBuffer | DataBuffer. writePosition(int writePosition)Set the position to which this buffer will write. | 
| Modifier and Type | Method and Description | 
|---|---|
| static reactor.core.publisher.Mono<DataBuffer> | DataBufferUtils. join(org.reactivestreams.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 reactor.core.publisher.Mono<DataBuffer> | DataBufferUtils. join(org.reactivestreams.Publisher<DataBuffer> dataBuffers)Return a new  DataBuffercomposed from joining together the givendataBufferselements. | 
| static reactor.core.publisher.Flux<DataBuffer> | DataBufferUtils. read(Resource resource,
    DataBufferFactory bufferFactory,
    int bufferSize)Read the given  Resourceinto aFluxofDataBuffers. | 
| static reactor.core.publisher.Flux<DataBuffer> | DataBufferUtils. read(Resource resource,
    long position,
    DataBufferFactory bufferFactory,
    int bufferSize)Read the given  Resourceinto aFluxofDataBuffers
 starting at the given position. | 
| static reactor.core.publisher.Flux<DataBuffer> | DataBufferUtils. readAsynchronousFileChannel(Callable<AsynchronousFileChannel> channelSupplier,
                           DataBufferFactory bufferFactory,
                           int bufferSize)Obtain a  AsynchronousFileChannelfrom the given supplier, and read
 it into aFluxofDataBuffers. | 
| static reactor.core.publisher.Flux<DataBuffer> | DataBufferUtils. readAsynchronousFileChannel(Callable<AsynchronousFileChannel> channelSupplier,
                           long position,
                           DataBufferFactory bufferFactory,
                           int bufferSize)Obtain a  AsynchronousFileChannelfrom the given supplier, and
 read it into aFluxofDataBuffers, starting at the given
 position. | 
| static reactor.core.publisher.Flux<DataBuffer> | DataBufferUtils. readByteChannel(Callable<ReadableByteChannel> channelSupplier,
               DataBufferFactory bufferFactory,
               int bufferSize) | 
| static reactor.core.publisher.Flux<DataBuffer> | DataBufferUtils. readInputStream(Callable<InputStream> inputStreamSupplier,
               DataBufferFactory bufferFactory,
               int bufferSize) | 
| 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. skipUntilByteCount(org.reactivestreams.Publisher<DataBuffer> publisher,
                  long maxByteCount)Skip buffers from the given  Publisheruntil the total
 byte count reaches
 the given maximum byte count, or until the publisher is complete. | 
| static reactor.core.publisher.Flux<DataBuffer> | DataBufferUtils. takeUntilByteCount(org.reactivestreams.Publisher<DataBuffer> publisher,
                  long maxByteCount)Relay buffers from the given  Publisheruntil the total
 byte count reaches
 the given maximum byte count, or until the publisher is complete. | 
| static reactor.core.publisher.Flux<DataBuffer> | DataBufferUtils. write(org.reactivestreams.Publisher<DataBuffer> source,
     AsynchronousFileChannel channel)Write the given stream of  DataBuffersto the givenAsynchronousFileChannel. | 
| static reactor.core.publisher.Flux<DataBuffer> | DataBufferUtils. write(org.reactivestreams.Publisher<DataBuffer> source,
     AsynchronousFileChannel channel,
     long position)Write the given stream of  DataBuffersto the givenAsynchronousFileChannel. | 
| static reactor.core.publisher.Flux<DataBuffer> | DataBufferUtils. write(org.reactivestreams.Publisher<DataBuffer> source,
     OutputStream outputStream)Write the given stream of  DataBuffersto the givenOutputStream. | 
| static reactor.core.publisher.Flux<DataBuffer> | DataBufferUtils. write(org.reactivestreams.Publisher<DataBuffer> source,
     WritableByteChannel channel)Write the given stream of  DataBuffersto the givenWritableByteChannel. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | LimitedDataBufferList. add(DataBuffer buffer) | 
| void | LimitedDataBufferList. add(int index,
   DataBuffer buffer) | 
| static boolean | DataBufferUtils. release(DataBuffer dataBuffer)Release the given data buffer, if it is a  PooledDataBufferand
 has been allocated. | 
| DataBuffer | LimitedDataBufferList. set(int index,
   DataBuffer element) | 
| static io.netty.buffer.ByteBuf | NettyDataBufferFactory. toByteBuf(DataBuffer buffer)Return the given Netty  DataBufferas aByteBuf. | 
| DataBuffer | DataBuffer. write(DataBuffer... buffers)Write one or more  DataBuffers to this buffer, starting at the current
 writing position. | 
| DefaultDataBuffer | DefaultDataBuffer. write(DataBuffer... buffers) | 
| NettyDataBuffer | NettyDataBuffer. write(DataBuffer... buffers) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | LimitedDataBufferList. addAll(Collection<? extends DataBuffer> collection) | 
| boolean | LimitedDataBufferList. addAll(int index,
      Collection<? extends DataBuffer> collection) | 
| DataBuffer | DataBufferFactory. join(List<? extends DataBuffer> dataBuffers)Return a new  DataBuffercomposed of thedataBufferselements joined together. | 
| DefaultDataBuffer | DefaultDataBufferFactory. join(List<? extends DataBuffer> dataBuffers)Return a new  DataBuffercomposed of thedataBufferselements joined together. | 
| DataBuffer | NettyDataBufferFactory. join(List<? extends DataBuffer> dataBuffers)Return a new  DataBuffercomposed of thedataBufferselements joined together. | 
| static reactor.core.publisher.Mono<DataBuffer> | DataBufferUtils. join(org.reactivestreams.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 reactor.core.publisher.Mono<DataBuffer> | DataBufferUtils. join(org.reactivestreams.Publisher<DataBuffer> dataBuffers)Return a new  DataBuffercomposed from joining together the givendataBufferselements. | 
| boolean | LimitedDataBufferList. removeIf(Predicate<? super DataBuffer> filter) | 
| static reactor.core.publisher.Flux<DataBuffer> | DataBufferUtils. skipUntilByteCount(org.reactivestreams.Publisher<DataBuffer> publisher,
                  long maxByteCount)Skip buffers from the given  Publisheruntil the total
 byte count reaches
 the given maximum byte count, or until the publisher is complete. | 
| static reactor.core.publisher.Flux<DataBuffer> | DataBufferUtils. takeUntilByteCount(org.reactivestreams.Publisher<DataBuffer> publisher,
                  long maxByteCount)Relay buffers from the given  Publisheruntil the total
 byte count reaches
 the given maximum byte count, or until the publisher is complete. | 
| static reactor.core.publisher.Flux<DataBuffer> | DataBufferUtils. write(org.reactivestreams.Publisher<DataBuffer> source,
     AsynchronousFileChannel channel)Write the given stream of  DataBuffersto the givenAsynchronousFileChannel. | 
| static reactor.core.publisher.Flux<DataBuffer> | DataBufferUtils. write(org.reactivestreams.Publisher<DataBuffer> source,
     AsynchronousFileChannel channel,
     long position)Write the given stream of  DataBuffersto the givenAsynchronousFileChannel. | 
| static reactor.core.publisher.Flux<DataBuffer> | DataBufferUtils. write(org.reactivestreams.Publisher<DataBuffer> source,
     OutputStream outputStream)Write the given stream of  DataBuffersto the givenOutputStream. | 
| static reactor.core.publisher.Flux<DataBuffer> | DataBufferUtils. write(org.reactivestreams.Publisher<DataBuffer> source,
     WritableByteChannel channel)Write the given stream of  DataBuffersto the givenWritableByteChannel. |