CharSequence stream to a bytes stream.
StringDecoder
| Modifier and Type | Field and Description |
|---|---|
| private final ConcurrentMap | |
| public static final Charset | DEFAULT_CHARSET
The default charset used by the encoder. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static CharSequenceEncoder | |
| pack-priv int | |
| 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)Overrides org. Implements org. Whether the encoder supports the given source element type and the MIME type for the output stream. |
| public Flux | encode(Publisher<? extends CharSequence>
the input stream of Objects to encode. If the input should be
encoded as a single value rather than as a stream of elements, an instance of
inputStream, DataBufferFactory Mono should be used.for creating output stream bufferFactory, ResolvableType DataBuffer'sthe expected type of elements in the input stream;
this type must have been previously passed to the elementType, MimeType canEncode
method and it must have returned true.the MIME type for the output content (optional) mimeType, Map<String, Object> additional information about how to encode hints)Implements org. Encode a stream of Objects of type |
| public DataBuffer | encodeValue(CharSequence
the value to be encoded charSequence, DataBufferFactory for creating the output bufferFactory, ResolvableType DataBufferthe type for the value being encoded valueType, MimeType the MIME type for the output content (optional) mimeType, Map<String, Object> additional information about how to encode hints)Overrides default org. Encode an Object of type T to a data buffer. |
| private Charset | |
| public static CharSequenceEncoder |
| charsetToMaxBytesPerChar | back to summary |
|---|---|
| private final ConcurrentMap<Charset, Float> charsetToMaxBytesPerChar | |
| DEFAULT_CHARSET | back to summary |
|---|---|
| public static final Charset DEFAULT_CHARSET The default charset used by the encoder. | |
| CharSequenceEncoder | back to summary |
|---|---|
| private CharSequenceEncoder(MimeType... mimeTypes) | |
| allMimeTypes | back to summary |
|---|---|
| public static CharSequenceEncoder allMimeTypes() Create a | |
| calculateCapacity | back to summary |
|---|---|
| pack-priv int calculateCapacity(CharSequence sequence, Charset charset) | |
| canEncode | back to summary |
|---|---|
| public boolean canEncode(ResolvableType elementType, MimeType mimeType) Overrides org. Implements org. Doc from org. Whether the encoder supports the given source element type and the MIME type for the output stream.
| |
| encode | back to summary |
|---|---|
| public Flux Implements org. Doc from org. Encode a stream of Objects of type
| |
| encodeValue | back to summary |
|---|---|
| public DataBuffer encodeValue(CharSequence charSequence, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) Overrides default org. Doc from org. Encode an Object of type T to a data buffer. This is useful for scenarios, that distinct messages (or events) are encoded and handled individually, in fully aggregated form. By default this method raises
| |
| getCharset | back to summary |
|---|---|
| private Charset getCharset(MimeType mimeType) | |
| textPlainOnly | back to summary |
|---|---|
| public static CharSequenceEncoder textPlainOnly() Create a | |