接口的使用
org.springframework.core.codec.Decoder
使用Decoder的程序包 程序包 说明 org.springframework.core.codec org.springframework.http.codec org.springframework.http.codec.cbor org.springframework.http.codec.json JSON encoder and decoder support.org.springframework.http.codec.protobuf Provides an encoder and a decoder for Google Protocol Buffers.org.springframework.http.codec.xml XML encoder and decoder support.org.springframework.messaging.handler.annotation.reactive Support classes for working with annotated message-handling methods with non-blocking, reactive contracts.org.springframework.messaging.rsocket Support for the RSocket protocol.org.springframework.messaging.rsocket.annotation.support Support classes for working with annotated RSocket stream handling methods.org.springframework.core.codec中Decoder的使用
实现Decoder的org.springframework.core.codec中的类 修饰符和类型 类 说明 class
AbstractDataBufferDecoder<T>
Abstract base class forDecoder
implementations that can decode aDataBuffer
directly to the target element type.class
AbstractDecoder<T>
Abstract base class forDecoder
implementations.class
ByteArrayDecoder
Decoder forbyte
arrays.class
ByteBufferDecoder
Decoder forByteBuffers
.class
DataBufferDecoder
Simple pass-through decoder forDataBuffers
.class
ResourceDecoder
Decoder forResources
.class
StringDecoder
Decode from a data buffer stream to aString
stream, either splitting or aggregating incoming data chunks to realign along newlines delimiters and produce a stream of strings.org.springframework.http.codec中Decoder的使用
org.springframework.http.codec中Decoder的子接口 修饰符和类型 接口 说明 interface
HttpMessageDecoder<T>
Extension ofDecoder
exposing extra methods relevant in the context of HTTP request or response body decoding.返回Decoder的org.springframework.http.codec中的方法 修饰符和类型 方法 说明 Decoder<T>
DecoderHttpMessageReader. getDecoder()
Return theDecoder
of this reader.Decoder<?>
ServerSentEventHttpMessageReader. getDecoder()
Return the configuredDecoder
.参数类型为Decoder的org.springframework.http.codec中的方法 修饰符和类型 方法 说明 void
CodecConfigurer.CustomCodecs. decoder(Decoder<?> decoder)
已过时。as of 5.1.13, useCodecConfigurer.CustomCodecs.register(Object)
orCodecConfigurer.CustomCodecs.registerWithDefaultConfig(Object)
instead.void
CodecConfigurer.DefaultCodecs. jackson2JsonDecoder(Decoder<?> decoder)
Override the default Jackson JSONDecoder
.void
CodecConfigurer.DefaultCodecs. jackson2SmileDecoder(Decoder<?> decoder)
Override the default Jackson SmileDecoder
.void
CodecConfigurer.DefaultCodecs. jaxb2Decoder(Decoder<?> decoder)
Override the default JAXB2Decoder
.void
CodecConfigurer.DefaultCodecs. protobufDecoder(Decoder<?> decoder)
Override the default ProtobufDecoder
.void
ClientCodecConfigurer.ClientDefaultCodecs. serverSentEventDecoder(Decoder<?> decoder)
Configure theDecoder
to use for Server-Sent Events.参数类型为Decoder的org.springframework.http.codec中的构造器 构造器 说明 DecoderHttpMessageReader(Decoder<T> decoder)
Create an instance wrapping the givenDecoder
.ServerSentEventHttpMessageReader(Decoder<?> decoder)
Constructor with JSONDecoder
for decoding to Objects.org.springframework.http.codec.cbor中Decoder的使用
实现Decoder的org.springframework.http.codec.cbor中的类 修饰符和类型 类 说明 class
Jackson2CborDecoder
Decode bytes into CBOR and convert to Object's with Jackson.org.springframework.http.codec.json中Decoder的使用
实现Decoder的org.springframework.http.codec.json中的类 修饰符和类型 类 说明 class
AbstractJackson2Decoder
Abstract base class for Jackson 2.9 decoding, leveraging non-blocking parsing.class
Jackson2JsonDecoder
Decode a byte stream into JSON and convert to Object's with Jackson 2.9, leveraging non-blocking parsing.class
Jackson2SmileDecoder
Decode a byte stream into Smile and convert to Object's with Jackson 2.9, leveraging non-blocking parsing.org.springframework.http.codec.protobuf中Decoder的使用
实现Decoder的org.springframework.http.codec.protobuf中的类 修饰符和类型 类 说明 class
ProtobufDecoder
org.springframework.http.codec.xml中Decoder的使用
实现Decoder的org.springframework.http.codec.xml中的类 修饰符和类型 类 说明 class
Jaxb2XmlDecoder
Decode from a bytes stream containing XML elements to a stream ofObject
s (POJOs).class
XmlEventDecoder
Decodes aDataBuffer
stream into a stream ofXMLEvents
.org.springframework.messaging.handler.annotation.reactive中Decoder的使用
返回变量类型为Decoder的类型的org.springframework.messaging.handler.annotation.reactive中的方法 修饰符和类型 方法 说明 List<? extends Decoder<?>>
MessageMappingMessageHandler. getDecoders()
Return the configured decoders.List<Decoder<?>>
PayloadMethodArgumentResolver. getDecoders()
Return a read-only list of the configured decoders.类型变量类型为Decoder的org.springframework.messaging.handler.annotation.reactive中的方法参数 修饰符和类型 方法 说明 void
MessageMappingMessageHandler. setDecoders(List<? extends Decoder<?>> decoders)
Configure the decoders to use for incoming payloads.类型变量类型为Decoder的org.springframework.messaging.handler.annotation.reactive中的构造器参数 构造器 说明 PayloadMethodArgumentResolver(List<? extends Decoder<?>> decoders, Validator validator, ReactiveAdapterRegistry registry, boolean useDefaultResolution)
org.springframework.messaging.rsocket中Decoder的使用
返回Decoder的org.springframework.messaging.rsocket中的方法 修饰符和类型 方法 说明 default <T> Decoder<T>
RSocketStrategies. decoder(ResolvableType elementType, MimeType mimeType)
Find a compatible Decoder for the given element type.返回变量类型为Decoder的类型的org.springframework.messaging.rsocket中的方法 修饰符和类型 方法 说明 List<Decoder<?>>
RSocketStrategies. decoders()
Return the configureddecoders
.List<? extends Decoder<?>>
DefaultMetadataExtractor. getDecoders()
Return a read-only list with the configured decoders.参数类型为Decoder的org.springframework.messaging.rsocket中的方法 修饰符和类型 方法 说明 RSocketStrategies.Builder
RSocketStrategies.Builder. decoder(Decoder<?>... decoder)
Append to the list of decoders to use for de-serializing Objects from the data or metadata of aPayload
.类型变量类型为Decoder的org.springframework.messaging.rsocket中的方法参数 修饰符和类型 方法 说明 RSocketStrategies.Builder
RSocketStrategies.Builder. decoders(Consumer<List<Decoder<?>>> consumer)
Apply the consumer to the list of configured decoders, immediately.参数类型为Decoder的org.springframework.messaging.rsocket中的构造器 构造器 说明 DefaultMetadataExtractor(Decoder<?>... decoders)
Constructor with decoders for de-serializing metadata entries.类型变量类型为Decoder的org.springframework.messaging.rsocket中的构造器参数 构造器 说明 DefaultMetadataExtractor(List<Decoder<?>> decoders)
Constructor with list of decoders for de-serializing metadata entries.org.springframework.messaging.rsocket.annotation.support中Decoder的使用
类型变量类型为Decoder的org.springframework.messaging.rsocket.annotation.support中的方法参数 修饰符和类型 方法 说明 void
RSocketMessageHandler. setDecoders(List<? extends Decoder<?>> decoders)
Configure the decoders to use for incoming payloads.