T - the element typepublic abstract class AbstractEncoder<T> extends Object implements Encoder<T>
Decoder implementations.| Modifier | Constructor and Description | 
|---|---|
| protected  | AbstractEncoder(MimeType... supportedMimeTypes) | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitencode, encodeValueprotected Log logger
protected AbstractEncoder(MimeType... supportedMimeTypes)
public void setLogger(Log logger)
logger - the logger to usepublic Log getLogger()
public List<MimeType> getEncodableMimeTypes()
EncodergetEncodableMimeTypes in interface Encoder<T>public boolean canEncode(ResolvableType elementType, @Nullable MimeType mimeType)
Encoder