DataBuffer input stream into an output stream
of elements of type <T>.
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if supported, false otherwisethe 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)Whether the decoder supports the given target element type and the MIME type of the source stream. |
| public Flux | Returns: the output stream with decoded elementsthe 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)Decode a |
| public default T | Returns: the decoded value, possiblynullthe buffer, ResolvableType DataBuffer to decodethe expected output type targetType, MimeType the MIME type associated with the data mimeType, Map<String, Object> additional information about how to do decode hints)Decode a data buffer to an Object of type T. |
| public Mono | Returns: the output stream with the decoded elementthe 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)Decode a |
| public List | Returns: the list of supported MIME typesReturn the list of MIME types supported by this Decoder. |
| public default List | Returns: the list of MIME types supported for the given target typethe type of element to check for decoding targetType)Return the list of MIME types supported by this Decoder for the given type of element. |
| canDecode | back to summary |
|---|---|
| public boolean canDecode(ResolvableType elementType, MimeType mimeType) Whether the decoder supports the given target element type and the MIME type of the source stream.
| |
| decode | back to summary |
|---|---|
| public Flux Decode a
| |
| decode | back to summary |
|---|---|
| public default T decode(DataBuffer buffer, ResolvableType targetType, MimeType mimeType, Map<String, Object> hints) throws DecodingException Decode a data buffer to an Object of type T. This is useful for scenarios, that distinct messages (or events) are decoded and handled individually, in fully aggregated form.
| |
| decodeToMono | back to summary |
|---|---|
| public Mono Decode a
| |
| getDecodableMimeTypes | back to summary |
|---|---|
| public List 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 | |
| getDecodableMimeTypes | back to summary |
|---|---|
| public default List Return the list of MIME types supported by this Decoder for the given type
of element. This list may differ from
| |