类 AbstractEncoder<T>
- java.lang.Object
- org.springframework.core.codec.AbstractEncoder<T>
 
- 类型参数:
- T- the element type
 - 所有已实现的接口:
- Encoder<T>
 - 直接已知子类:
- AbstractSingleValueEncoder,- ByteArrayEncoder,- ByteBufferEncoder,- CharSequenceEncoder,- DataBufferEncoder,- ResourceRegionEncoder
 - public abstract class AbstractEncoder<T> extends Object implements Encoder<T> Abstract base class for- Decoderimplementations.- 从以下版本开始:
- 5.0
- 作者:
- Sebastien Deleuze, Arjen Poutsma
 
- 构造器概要- 构造器 - 限定符 - 构造器 - 说明 - protected- AbstractEncoder(MimeType... supportedMimeTypes)
 - 方法概要- 所有方法 实例方法 具体方法 - 修饰符和类型 - 方法 - 说明 - boolean- canEncode(ResolvableType elementType, MimeType mimeType)Whether the encoder supports the given source element type and the MIME type for the output stream.- List<MimeType>- getEncodableMimeTypes()Return the list of mime types this encoder supports.- Log- getLogger()Return the currently configured Logger.- void- setLogger(Log logger)Set 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
 - 从接口继承的方法 org.springframework.core.codec.Encoder- encode, encodeValue
 
 
- 构造器详细资料- AbstractEncoder- protected AbstractEncoder(MimeType... supportedMimeTypes) 
 
 - 方法详细资料- setLogger- public void setLogger(Log logger) Set an alternative logger to use than the one based on the class name.- 参数:
- logger- the logger to use
- 从以下版本开始:
- 5.1
 
 - getEncodableMimeTypes- public List<MimeType> getEncodableMimeTypes() 从接口复制的说明:- EncoderReturn the list of mime types this encoder supports.- 指定者:
- getEncodableMimeTypes在接口中- Encoder<T>
 
 - canEncode- public boolean canEncode(ResolvableType elementType, @Nullable MimeType mimeType) 从接口复制的说明:- EncoderWhether the encoder supports the given source element type and the MIME type for the output stream.