类 AbstractEncoder<T>
java.lang.Object
cn.taketoday.core.codec.AbstractEncoder<T>
- 类型参数:
T- the element type
- 所有已实现的接口:
Encoder<T>
- 直接已知子类:
AbstractSingleValueEncoder,ByteArrayEncoder,ByteBufferEncoder,CharSequenceEncoder,DataBufferEncoder,Netty5BufferEncoder,NettyByteBufEncoder,ResourceRegionEncoder
Abstract base class for
Encoder implementations.- 从以下版本开始:
- 4.0
- 作者:
- Sebastien Deleuze, Arjen Poutsma, Harry Yang
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleancanEncode(ResolvableType elementType, MimeType mimeType) Whether the encoder supports the given source element type and the MIME type for the output stream.Return the list of MIME types supported by this Encoder.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.Encoder
encode, encodeValue, getEncodableMimeTypes
-
字段详细资料
-
encodableMimeTypes
-
logger
-
-
构造器详细资料
-
AbstractEncoder
-
-
方法详细资料
-
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. -
getEncodableMimeTypes
从接口复制的说明:EncoderReturn the list of MIME types supported by this Encoder. The list may not apply to every possible target element type and calls to this method should typically be guarded viacanEncode(elementType, null). The list may also exclude MIME types supported only for a specific element type. Alternatively, useEncoder.getEncodableMimeTypes(ResolvableType)for a more precise list.- 指定者:
getEncodableMimeTypes在接口中Encoder<T>- 返回:
- the list of supported MIME types
-
canEncode
从接口复制的说明:EncoderWhether the encoder supports the given source element type and the MIME type for the output stream.
-