StringFormat
Decoder implementations that defer to Kotlin
string serializers.
| Modifier and Type | Field and Description |
|---|---|
| private final StringDecoder |
| Access | Constructor and Description |
|---|---|
| public |
| 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. Whether the decoder supports the given target element type and the MIME type of the source stream. |
| public Flux | decode(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. Decode a |
| 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. Decode a |
| public List | getDecodableMimeTypes()
Implements org. Return the list of MIME types supported by this Decoder. |
| public List | getDecodableMimeTypes(ResolvableType
the type of element to check for decoding targetType)Overrides default org. Return the list of MIME types supported by this Decoder for the given type of element. |
| public int | |
| public void | setMaxInMemorySize(int
the max number of bytes to buffer, or -1 for unlimited byteCount)Configure a limit on the number of bytes that can be buffered whenever the input stream needs to be aggregated. |
| stringDecoder | back to summary |
|---|---|
| private final StringDecoder stringDecoder | |
| KotlinSerializationStringDecoder | back to summary |
|---|---|
| public KotlinSerializationStringDecoder(T format, 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.
| |
| decode | back to summary |
|---|---|
| public Flux Implements org. Doc from org. Decode a
| |
| 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 | |
| getDecodableMimeTypes | back to summary |
|---|---|
| public List Overrides default org. Doc from org. Return the list of MIME types supported by this Decoder for the given type
of element. This list may differ from
| |
| getMaxInMemorySize | back to summary |
|---|---|
| public int getMaxInMemorySize() Return the | |
| setMaxInMemorySize | back to summary |
|---|---|
| public void setMaxInMemorySize(int byteCount) Configure a limit on the number of bytes that can be buffered whenever
the input stream needs to be aggregated. This can be a result of
decoding to a single By default this is set to 256K.
| |