spring-framework / org.springframework.core.codec / DataBufferDecoder

DataBufferDecoder

open class DataBufferDecoder : AbstractDecoder<DataBuffer>

Simple pass-through decoder for DataBuffers.

Note that the "decoded" buffers returned by instances of this class should be released after usage by calling org.springframework.core.io.buffer.DataBufferUtils#release(DataBuffer).

Author
Arjen Poutsma

Since
5.0

Constructors

<init>

DataBufferDecoder()

Functions

canDecode

open fun canDecode(elementType: ResolvableType, mimeType: MimeType): Boolean

decode

open fun decode(inputStream: Publisher<DataBuffer>, elementType: ResolvableType, mimeType: MimeType, hints: MutableMap<String, Any>): Flux<DataBuffer>