Decoder implementations.
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canDecode(ResolvableType
the target element type for the output stream elementType, MimeType the mime type associated with the stream to decode
(can be mimeType)null if not specified)Implements org. |
| public Mono | decodeToMono(Publisher<DataBuffer>
the inputStream, ResolvableType DataBuffer input stream to decodethe expected type of elements in the output stream;
this type must have been previously passed to the elementType, MimeType canDecode
method and it must have returned true.the MIME type associated with the input stream (optional) mimeType, Map<String, Object> additional information about how to do decode hints)Implements org. DataBuffer input stream into a Mono of T.
|
| public List | getDecodableMimeTypes()
Implements org. |
| public Log | |
| public void |
| decodableMimeTypes | back to summary |
|---|---|
| private final List<MimeType> decodableMimeTypes | |
| logger | back to summary |
|---|---|
| protected Log logger | |
| AbstractDecoder | back to summary |
|---|---|
| protected AbstractDecoder(MimeType... supportedMimeTypes) | |
| canDecode | back to summary |
|---|---|
| public boolean canDecode(ResolvableType elementType, MimeType mimeType) Implements org. Doc from org. Whether the decoder supports the given target element type and the MIME type of the source stream.
| |
| decodeToMono | back to summary |
|---|---|
| public Mono Implements org. Doc from org. Decode a
| |
| getDecodableMimeTypes | back to summary |
|---|---|
| public List Implements org. Doc from org. Return the list of MIME types supported by this Decoder. 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.
| |