クラス KotlinSerializationBinaryDecoder<T extends kotlinx.serialization.BinaryFormat>
java.lang.ObjectSE
org.springframework.http.codec.KotlinSerializationSupport<T>
org.springframework.http.codec.KotlinSerializationBinaryDecoder<T>
- 型パラメーター:
- T-- BinaryFormatの型
public abstract class KotlinSerializationBinaryDecoder<T extends kotlinx.serialization.BinaryFormat>
extends KotlinSerializationSupport<T>
implements Decoder<ObjectSE>
Kotlin バイナリシリアライザーに従う 
Decoder 実装の抽象基本クラス。- 導入:
- 6.0
- 作成者:
- Sebastien Deleuze, Iain Henderson, Arjen Poutsma
- コンストラクターの概要コンストラクター
- メソッドのサマリー修飾子と型メソッド説明- 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 にデコードします。このデコーダーでサポートされている MIME 型のリストを返します。- getDecodableMimeTypes- (ResolvableType targetType) 指定された型の要素について、このデコーダーでサポートされている MIME 型のリストを返します。- int- configuredバイトカウント制限を返します。- void- setMaxInMemorySize- (int byteCount) 入力ストリームを集約する必要があるときはいつでもバッファリングできるバイト数の制限を構成します。- クラス org.springframework.http.codec.KotlinSerializationSupport から継承されたメソッド- canSerialize, format, serializer, supportedMimeTypes
- コンストラクターの詳細- KotlinSerializationBinaryDecoder
 
- メソッドの詳細- setMaxInMemorySizepublic void setMaxInMemorySize- (int byteCount) 入力ストリームを集約する必要があるときはいつでもバッファリングできるバイト数の制限を構成します。これは、単一の- DataBuffer、- ByteBufferSE、- byte[]、- Resource、- Stringなどへのデコードの結果である可能性があります。区切りテキスト。この場合、制限は区切り文字間でバッファリングされるデータに適用されます。- デフォルトでは、これは 256K に設定されています。 - パラメーター:
- byteCount- バッファリングする最大バイト数、または無制限の場合は -1
 
- getMaxInMemorySizepublic int getMaxInMemorySize()- configuredバイトカウント制限を返します。
- canDecodeインターフェースからコピーされた説明:- Decoderデコーダーが特定のターゲット要素型とソースストリームの MIME 型をサポートするかどうか。
- getDecodableMimeTypesインターフェースからコピーされた説明:- Decoderこのデコーダーでサポートされている MIME 型のリストを返します。このリストは、考えられるすべてのターゲット要素型に適用されるとは限らないため、このメソッドの呼び出しは通常、- canDecode(elementType, null)を介して保護する必要があります。このリストでは、特定の要素型でのみサポートされている MIME 型を除外することもできます。または、- Decoder.getDecodableMimeTypes(ResolvableType)を使用してより正確なリストを作成します。- 次で指定:
-  インターフェース Decoder<T extends kotlinx.serialization.BinaryFormat>のgetDecodableMimeTypes
- 戻り値:
- サポートされている MIME 型のリスト
 
- getDecodableMimeTypesインターフェースからコピーされた説明:- Decoder指定された型の要素について、このデコーダーでサポートされている MIME 型のリストを返します。このリストは、デコーダーが特定の要素型をサポートしていない場合、または MIME 型のサブセットに対してのみサポートしている場合、- Decoder.getDecodableMimeTypes()とは異なる場合があります。- 次で指定:
-  インターフェース Decoder<T extends kotlinx.serialization.BinaryFormat>のgetDecodableMimeTypes
- パラメーター:
- targetType- デコードをチェックする要素の型
- 戻り値:
- 特定のターゲット型でサポートされている MIME 型のリスト
 
- decodepublic reactor.core.publisher.Flux<ObjectSE> decode- (Publisher<DataBuffer> inputStream, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable MapSE<StringSE, - ObjectSE> hints) インターフェースからコピーされた説明:- Decoder- DataBuffer入力ストリームを- Tの Flux にデコードします。- 次で指定:
-  インターフェース Decoder<T extends kotlinx.serialization.BinaryFormat>のdecode
- パラメーター:
- inputStream- デコードする- DataBuffer入力ストリーム
- elementType- 出力ストリーム内の要素の予想される型。この型は、事前に- Decoder.canDecode(org.springframework.core.ResolvableType, org.springframework.util.MimeType)メソッドに渡されている必要があり、- trueを返している必要があります。
- mimeType- 入力ストリームに関連付けられた MIME 型 (オプション)
- hints- デコード方法に関する追加情報
- 戻り値:
- デコードされた要素を含む出力ストリーム
 
- decodeToMonopublic reactor.core.publisher.Mono<ObjectSE> decodeToMono- (Publisher<DataBuffer> inputStream, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable MapSE<StringSE, - ObjectSE> hints) インターフェースからコピーされた説明:- Decoder- DataBuffer入力ストリームを- Tの Mono にデコードします。- 次で指定:
-  インターフェース Decoder<T extends kotlinx.serialization.BinaryFormat>のdecodeToMono
- パラメーター:
- inputStream- デコードする- DataBuffer入力ストリーム
- elementType- 出力ストリーム内の要素の予想される型。この型は、事前に- Decoder.canDecode(org.springframework.core.ResolvableType, org.springframework.util.MimeType)メソッドに渡されている必要があり、- trueを返している必要があります。
- mimeType- 入力ストリームに関連付けられた MIME 型 (オプション)
- hints- デコード方法に関する追加情報
- 戻り値:
- デコードされた要素を持つ出力ストリーム