Encoder implementations.
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canEncode(ResolvableType
the type of elements in the source stream elementType, MimeType the MIME type for the output stream
(can be mimeType)null if not specified)Implements org. |
| public List | getEncodableMimeTypes()
Implements org. |
| public Log | |
| public void |
| encodableMimeTypes | back to summary |
|---|---|
| private final List<MimeType> encodableMimeTypes | |
| logger | back to summary |
|---|---|
| protected Log logger | |
| AbstractEncoder | back to summary |
|---|---|
| protected AbstractEncoder(MimeType... supportedMimeTypes) | |
| canEncode | back to summary |
|---|---|
| public boolean canEncode(ResolvableType elementType, MimeType mimeType) Implements org. Doc from org. Whether the encoder supports the given source element type and the MIME type for the output stream.
| |
| getEncodableMimeTypes | back to summary |
|---|---|
| public List Implements org. Doc from org. Return 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 via | |
| getLogger | back to summary |
|---|---|
| public Log getLogger() Return the currently configured Logger.
| |
| setLogger | back to summary |
|---|---|
| public void setLogger(Log logger) Set an alternative logger to use than the one based on the class name.
| |