类 AbstractDecoder<T>
java.lang.Object
cn.taketoday.core.codec.AbstractDecoder<T>
- 类型参数:
T- the element type
- 所有已实现的接口:
Decoder<T>
- 直接已知子类:
AbstractDataBufferDecoder
Abstract base class for
Decoder implementations.- 从以下版本开始:
- 4.0
- 作者:
- Sebastien Deleuze, Arjen Poutsma, Harry Yang
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleancanDecode(ResolvableType elementType, MimeType mimeType) Whether the decoder supports the given target element type and the MIME type of the source stream.reactor.core.publisher.Mono<T>decodeToMono(org.reactivestreams.Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) Decode aDataBufferinput stream into a Mono ofT.Return the list of MIME types supported by this Decoder.Return the currently configured Logger.voidSet an alternative logger to use than the one based on the class name.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 cn.taketoday.core.codec.Decoder
decode, decode, getDecodableMimeTypes
-
字段详细资料
-
decodableMimeTypes
-
logger
-
-
构造器详细资料
-
AbstractDecoder
-
-
方法详细资料
-
setLogger
Set an alternative logger to use than the one based on the class name.- 参数:
logger- the logger to use
-
getLogger
Return the currently configured Logger. -
getDecodableMimeTypes
从接口复制的说明:DecoderReturn the list of MIME types supported by this Decoder. The list may not apply to every possible target element type and calls to this method should typically be guarded viacanDecode(elementType, null). The list may also exclude MIME types supported only for a specific element type. Alternatively, useDecoder.getDecodableMimeTypes(ResolvableType)for a more precise list.- 指定者:
getDecodableMimeTypes在接口中Decoder<T>- 返回:
- the list of supported MIME types
-
canDecode
从接口复制的说明:DecoderWhether the decoder supports the given target element type and the MIME type of the source stream. -
decodeToMono
public reactor.core.publisher.Mono<T> decodeToMono(org.reactivestreams.Publisher<DataBuffer> inputStream, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) 从接口复制的说明:DecoderDecode aDataBufferinput stream into a Mono ofT.- 指定者:
decodeToMono在接口中Decoder<T>- 参数:
inputStream- theDataBufferinput stream to decodeelementType- the expected type of elements in the output stream; this type must have been previously passed to theDecoder.canDecode(cn.taketoday.core.ResolvableType, cn.taketoday.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 decode- 返回:
- the output stream with the decoded element
-