public class ByteBufferDecoder extends AbstractDataBufferDecoder<java.nio.ByteBuffer>
ByteBuffer
s.Constructor and Description |
---|
ByteBufferDecoder() |
Modifier and Type | Method and Description |
---|---|
boolean |
canDecode(ResolvableType elementType,
MimeType mimeType)
Whether the decoder supports the given target element type and the MIME
type of the source stream.
|
protected java.nio.ByteBuffer |
decodeDataBuffer(DataBuffer dataBuffer,
ResolvableType elementType,
MimeType mimeType,
java.util.Map<java.lang.String,java.lang.Object> hints)
How to decode a
DataBuffer to the target element type. |
decode, decodeToMono
getDecodableMimeTypes
public boolean canDecode(ResolvableType elementType, @Nullable MimeType mimeType)
Decoder
canDecode
in interface Decoder<java.nio.ByteBuffer>
canDecode
in class AbstractDecoder<java.nio.ByteBuffer>
elementType
- the target element type for the output streammimeType
- the mime type associated with the stream to decode
(can be null
if not specified)true
if supported, false
otherwiseprotected java.nio.ByteBuffer decodeDataBuffer(DataBuffer dataBuffer, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable java.util.Map<java.lang.String,java.lang.Object> hints)
AbstractDataBufferDecoder
DataBuffer
to the target element type.decodeDataBuffer
in class AbstractDataBufferDecoder<java.nio.ByteBuffer>