CharSequence stream.
| Modifier and Type | Field and Description |
|---|---|
| public static final Charset | DEFAULT_CHARSET
The default charset to use, i.e. "UTF-8". |
| public static final List | DEFAULT_DELIMITERS
The default delimiter strings to use, i.e. |
| private Charset | |
| private final List | |
| private final ConcurrentMap | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| protected | AbstractCharSequenceDecoder(List<String> delimiters, boolean stripDelimiter, MimeType... mimeTypes)
Create a new |
| Modifier and Type | Method and Description |
|---|---|
| public final Flux | decode(Publisher<DataBuffer>
the input, 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)Overrides org. Implements org. Decode a |
| public final T | decode(DataBuffer
the dataBuffer, ResolvableType DataBuffer to decodethe expected output type elementType, MimeType the MIME type associated with the data mimeType, Map<String, Object> additional information about how to do decode hints)Overrides default org. Decode a data buffer to an Object of type T. |
| protected abstract T | decodeInternal(DataBuffer dataBuffer, Charset charset)
Template method that decodes the given data buffer into |
| private Charset | |
| public Charset | |
| private byte[][] | |
| private Collection | |
| public void | setDefaultCharset(Charset
the charset to fall back on defaultCharset)Set the default character set to fall back on if the MimeType does not specify any. |
| DEFAULT_CHARSET | back to summary |
|---|---|
| public static final Charset DEFAULT_CHARSET The default charset to use, i.e. "UTF-8". | |
| DEFAULT_DELIMITERS | back to summary |
|---|---|
| public static final List<String> DEFAULT_DELIMITERS The default delimiter strings to use, i.e. | |
| defaultCharset | back to summary |
|---|---|
| private Charset defaultCharset | |
| delimiters | back to summary |
|---|---|
| private final List<String> delimiters | |
| delimitersCache | back to summary |
|---|---|
| private final ConcurrentMap<Charset, byte[][]> delimitersCache | |
| stripDelimiter | back to summary |
|---|---|
| private final boolean stripDelimiter | |
| AbstractCharSequenceDecoder | back to summary |
|---|---|
| protected AbstractCharSequenceDecoder(List<String> delimiters, boolean stripDelimiter, MimeType... mimeTypes) Create a new | |
| decode | back to summary |
|---|---|
| public final Flux Overrides org. Implements org. Doc from org. Decode a
| |
| decode | back to summary |
|---|---|
| public final T decode(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) Overrides default org. Doc from org. 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.
| |
| decodeInternal | back to summary |
|---|---|
| protected abstract T decodeInternal(DataBuffer dataBuffer, Charset charset) Template method that decodes the given data buffer into | |
| getCharset | back to summary |
|---|---|
| private Charset getCharset(MimeType mimeType) | |
| getDefaultCharset | back to summary |
|---|---|
| public Charset getDefaultCharset() Return the configured | |
| getDelimiterBytes | back to summary |
|---|---|
| private byte[][] getDelimiterBytes(MimeType mimeType) | |
| processDataBuffer | back to summary |
|---|---|
| private Collection | |
| setDefaultCharset | back to summary |
|---|---|
| public void setDefaultCharset(Charset defaultCharset) Set the default character set to fall back on if the MimeType does not specify any. By default this is
| |