Package org.springframework.core.codec
Class Netty5BufferDecoder
java.lang.Object
org.springframework.core.codec.AbstractDecoder<T>
org.springframework.core.codec.AbstractDataBufferDecoder<io.netty5.buffer.Buffer>
org.springframework.core.codec.Netty5BufferDecoder
- All Implemented Interfaces:
Decoder<io.netty5.buffer.Buffer>
@Deprecated(since="6.2.18",
forRemoval=true)
public class Netty5BufferDecoder
extends AbstractDataBufferDecoder<io.netty5.buffer.Buffer>
Deprecated, for removal: This API element is subject to removal in a future version.
as of 6.2.18 with no replacement
Decoder for
Buffers.- Since:
- 6.0
- Author:
- Violeta Georgieva
-
Field Summary
Fields inherited from class org.springframework.core.codec.AbstractDecoder
logger -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanDecode(ResolvableType elementType, MimeType mimeType) Deprecated, for removal: This API element is subject to removal in a future version.Whether the decoder supports the given target element type and the MIME type of the source stream.io.netty5.buffer.Bufferdecode(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) Deprecated, for removal: This API element is subject to removal in a future version.Decode a data buffer to an Object of type T.Methods inherited from class org.springframework.core.codec.AbstractDataBufferDecoder
decode, decodeDataBuffer, decodeToMono, getMaxInMemorySize, setMaxInMemorySizeMethods inherited from class org.springframework.core.codec.AbstractDecoder
getDecodableMimeTypes, getLogger, setLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.core.codec.Decoder
getDecodableMimeTypes
-
Constructor Details
-
Netty5BufferDecoder
public Netty5BufferDecoder()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
canDecode
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:DecoderWhether the decoder supports the given target element type and the MIME type of the source stream.- Specified by:
canDecodein interfaceDecoder<io.netty5.buffer.Buffer>- Overrides:
canDecodein classAbstractDecoder<io.netty5.buffer.Buffer>- Parameters:
elementType- the target element type for the output streammimeType- the mime type associated with the stream to decode (can benullif not specified)- Returns:
trueif supported,falseotherwise
-
decode
public io.netty5.buffer.Buffer decode(DataBuffer dataBuffer, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:DecoderDecode a data buffer to an Object of type T. This is useful for scenarios, that distinct messages (or events) are decoded and handled individually, in fully aggregated form.- Parameters:
dataBuffer- theDataBufferto decodeelementType- the expected output typemimeType- the MIME type associated with the datahints- additional information about how to do decode- Returns:
- the decoded value, possibly
null
-