public class KotlinSerializationJsonDecoder extends AbstractDecoder<ObjectSE>
 このデコーダーは、@Serializable Kotlin クラスをバインドするために使用できます。オープンポリモーフィック直列化はサポートされていません。さまざまな文字セットの application/json および application/*+json をサポートし、UTF-8 がデフォルトです。
ストリームのデコードはまだサポートされていません。kotlinx.serialization/issues/1073 関連の課題を参照してください。
logger| コンストラクターと説明 | 
|---|
| KotlinSerializationJsonDecoder() | 
| KotlinSerializationJsonDecoder(kotlinx.serialization.json.Json json) | 
| 修飾子と型 | メソッドと説明 | 
|---|---|
| boolean | canDecode(ResolvableType elementType, MimeType mimeType) デコーダーが特定のターゲット要素型とソースストリームの MIME 型をサポートするかどうか。 | 
| reactor.core.publisher.Flux<ObjectSE> | decode(Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, MapSE<StringSE, ObjectSE> hints)DataBuffer入力ストリームをTの Flux にデコードします。 | 
| reactor.core.publisher.Mono<ObjectSE> | decodeToMono(Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, MapSE<StringSE, ObjectSE> hints)DataBuffer入力ストリームをTの Mono にデコードします。 | 
| int | getMaxInMemorySize()configuredバイトカウント制限を返します。 | 
| void | setMaxInMemorySize(int byteCount) 入力ストリームを集約する必要があるときはいつでもバッファリングできるバイト数の制限を構成します。 | 
getDecodableMimeTypes, getLogger, setLoggercloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEdecode, getDecodableMimeTypespublic KotlinSerializationJsonDecoder()
public KotlinSerializationJsonDecoder(kotlinx.serialization.json.Json json)
public void setMaxInMemorySize(int byteCount)
DataBuffer、ByteBufferSE、byte[]、Resource、String などへのデコードの結果である可能性があります。区切りテキスト。この場合、制限は区切り文字間でバッファリングされるデータに適用されます。デフォルトでは、これは 256K に設定されています。
byteCount - バッファリングする最大バイト数、または無制限の場合は -1public int getMaxInMemorySize()
configured バイトカウント制限を返します。public boolean canDecode(ResolvableType elementType, @Nullable MimeType mimeType)
Decoderpublic reactor.core.publisher.Flux<ObjectSE> decode(Publisher<DataBuffer> inputStream, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable MapSE<StringSE,ObjectSE> hints)
DecoderDataBuffer 入力ストリームを T の Flux にデコードします。inputStream - デコードする DataBuffer 入力ストリーム elementType - 出力ストリーム内の要素の予想される型。この型は、事前に Decoder.canDecode(org.springframework.core.ResolvableType, org.springframework.util.MimeType) メソッドに渡されている必要があり、true を返している必要があります。mimeType - 入力ストリームに関連付けられた MIME 型 (オプション)hints - デコード方法に関する追加情報 public reactor.core.publisher.Mono<ObjectSE> decodeToMono(Publisher<DataBuffer> inputStream, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable MapSE<StringSE,ObjectSE> hints)
DecoderDataBuffer 入力ストリームを T の Mono にデコードします。Decoder<ObjectSE> の decodeToMono AbstractDecoder<ObjectSE> の decodeToMono inputStream - デコードする DataBuffer 入力ストリーム elementType - 出力ストリーム内の要素の予想される型。この型は、事前に Decoder.canDecode(org.springframework.core.ResolvableType, org.springframework.util.MimeType) メソッドに渡されている必要があり、true を返している必要があります。mimeType - 入力ストリームに関連付けられた MIME 型 (オプション)hints - デコード方法に関する追加情報