public class NettyByteBufDecoder extends AbstractDataBufferDecoder<io.netty.buffer.ByteBuf>
ByteBufs
.logger
Constructor and Description |
---|
NettyByteBufDecoder() |
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.
|
io.netty.buffer.ByteBuf |
decode(DataBuffer dataBuffer,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints)
Decode a data buffer to an Object of type T.
|
decode, decodeDataBuffer, decodeToMono, getMaxInMemorySize, setMaxInMemorySize
getDecodableMimeTypes, getLogger, setLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDecodableMimeTypes
public boolean canDecode(ResolvableType elementType, @Nullable MimeType mimeType)
Decoder
canDecode
in interface Decoder<io.netty.buffer.ByteBuf>
canDecode
in class AbstractDecoder<io.netty.buffer.ByteBuf>
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
otherwisepublic io.netty.buffer.ByteBuf decode(DataBuffer dataBuffer, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String,Object> hints)
Decoder
dataBuffer
- the DataBuffer
to decodeelementType
- the expected output typemimeType
- the MIME type associated with the datahints
- additional information about how to do decodenull