类 Jackson2CborDecoder
- java.lang.Object
- org.springframework.http.codec.json.Jackson2CodecSupport
- org.springframework.http.codec.json.AbstractJackson2Decoder
- org.springframework.http.codec.cbor.Jackson2CborDecoder
- 所有已实现的接口:
Decoder<Object>
,HttpMessageDecoder<Object>
public class Jackson2CborDecoder extends AbstractJackson2Decoder
Decode bytes into CBOR and convert to Object's with Jackson. Stream decoding is not supported yet.- 从以下版本开始:
- 5.2
- 作者:
- Sebastien Deleuze
- 另请参阅:
Jackson2CborEncoder
, Add CBOR support to WebFlux
字段概要
从类继承的字段 org.springframework.http.codec.json.Jackson2CodecSupport
JSON_VIEW_HINT, logger
构造器概要
构造器 构造器 说明 Jackson2CborDecoder()
Jackson2CborDecoder(ObjectMapper mapper, MimeType... mimeTypes)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 reactor.core.publisher.Flux<Object>
decode(org.reactivestreams.Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)
Decode aDataBuffer
input stream into a Flux ofT
.从类继承的方法 org.springframework.http.codec.json.AbstractJackson2Decoder
canDecode, decode, decodeToMono, getAnnotation, getDecodableMimeTypes, getDecodeHints, getMaxInMemorySize, processInput, setMaxInMemorySize
从类继承的方法 org.springframework.http.codec.json.Jackson2CodecSupport
getHints, getJavaType, getMimeTypes, getObjectMapper, getParameter, supportsMimeType
构造器详细资料
Jackson2CborDecoder
public Jackson2CborDecoder()
Jackson2CborDecoder
public Jackson2CborDecoder(ObjectMapper mapper, MimeType... mimeTypes)
方法详细资料
decode
public reactor.core.publisher.Flux<Object> decode(org.reactivestreams.Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)
从接口复制的说明:Decoder
Decode aDataBuffer
input stream into a Flux ofT
.- 指定者:
decode
在接口中Decoder<Object>
- 覆盖:
decode
在类中AbstractJackson2Decoder
- 参数:
input
- theDataBuffer
input stream to decodeelementType
- the expected type of elements in the output stream; this type must have been previously passed to theDecoder.canDecode(org.springframework.core.ResolvableType, org.springframework.util.MimeType)
method and it must have returnedtrue
.mimeType
- the MIME type associated with the input stream (optional)hints
- additional information about how to do encode- 返回:
- the output stream with decoded elements