类 CharSequenceEncoder

    • 字段详细资料

    • 方法详细资料

      • encodeValue

        public DataBuffer encodeValue​(CharSequence charSequence,
                                      DataBufferFactory bufferFactory,
                                      ResolvableType valueType,
                                      @Nullable
                                      MimeType mimeType,
                                      @Nullable
                                      Map<String,​Object> hints)
        从接口复制的说明: Encoder
        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 UnsupportedOperationException and it is expected that some encoders cannot produce a single buffer or cannot do so synchronously (e.g. encoding a Resource).

        参数:
        charSequence - the value to be encoded
        bufferFactory - for creating the output DataBuffer
        valueType - the type for the value being encoded
        mimeType - the MIME type for the output content (optional)
        hints - additional information about how to encode
        返回:
        the encoded content