public abstract class AbstractEncoder<T> extends java.lang.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.
|
java.util.List<MimeType> |
getEncodableMimeTypes()
Return the list of mime types this encoder supports.
|
protected AbstractEncoder(MimeType... supportedMimeTypes)
public java.util.List<MimeType> getEncodableMimeTypes()
Encoder
getEncodableMimeTypes
in interface Encoder<T>
public boolean canEncode(ResolvableType elementType, @Nullable MimeType mimeType)
Encoder