public 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
encode, getContentLength
protected AbstractEncoder(MimeType... supportedMimeTypes)
public List<MimeType> getEncodableMimeTypes()
Encoder
getEncodableMimeTypes
in interface Encoder<T>
public boolean canEncode(ResolvableType elementType, @Nullable MimeType mimeType)
Encoder