クラス Jaxb2XmlDecoder
java.lang.ObjectSE
org.springframework.core.codec.AbstractDecoder<ObjectSE>
org.springframework.http.codec.xml.Jaxb2XmlDecoder
XML 要素を含むバイトストリームから 
Object(POJO)のストリームにデコードします。- 導入:
- 5.0
- 作成者:
- Sebastien Deleuze, Arjen Poutsma
- 関連事項:
- フィールドのサマリー- クラス org.springframework.core.codec.AbstractDecoder から継承されたフィールド- logger
- コンストラクターの概要コンストラクター
- メソッドのサマリー修飾子と型メソッド説明- 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 にデコードします。- decode- (DataBuffer dataBuffer, ResolvableType targetType, MimeType mimeType, MapSE<StringSE, - ObjectSE> hints) データバッファを型 T のオブジェクトにデコードします。- reactor.core.publisher.Mono<ObjectSE>- decodeToMono- (Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, MapSE<StringSE, - ObjectSE> hints) - DataBuffer入力ストリームを- Tの Mono にデコードします。- int- configuredバイトカウント制限を返します。Unmarshaller インスタンスをカスタマイズするために構成されたプロセッサーを返します。- void- setMaxInMemorySize- (int byteCount) このデコーダーでバッファーできる最大バイト数を設定します。- voidUnmarshaller インスタンスをカスタマイズするようにプロセッサー機能を構成します。- クラス org.springframework.core.codec.AbstractDecoder から継承されたメソッド- getDecodableMimeTypes, getLogger, setLogger- クラス java.lang.ObjectSE から継承されたメソッド- clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE- インターフェース org.springframework.core.codec.Decoder から継承されたメソッド- getDecodableMimeTypes
- コンストラクターの詳細- Jaxb2XmlDecoderpublic Jaxb2XmlDecoder()
- Jaxb2XmlDecoder指定された MIME 型で- Jaxb2XmlDecoderを作成します。- パラメーター:
- supportedMimeTypes- サポートされている MIME 型
- 導入:
- 5.1.9
 
 
- メソッドの詳細- setUnmarshallerProcessorUnmarshaller インスタンスをカスタマイズするようにプロセッサー機能を構成します。- パラメーター:
- processor- 使用する関数
- 導入:
- 5.1.3
 
- getUnmarshallerProcessorUnmarshaller インスタンスをカスタマイズするために構成されたプロセッサーを返します。- 導入:
- 5.1.3
 
- setMaxInMemorySizepublic void setMaxInMemorySize- (int byteCount) このデコーダーでバッファリングできる最大バイト数を設定します。これは、全体としてデコードするときの入力全体のサイズ、または Aalto XML で非同期解析を使用するときの、1 つのトップレベル XML ツリーのサイズです。制限を超えると、- DataBufferLimitExceptionが発生します。- デフォルトでは、これは 256K に設定されています。 - パラメーター:
- byteCount- バッファリングする最大バイト数、または無制限の場合は -1
- 導入:
- 5.1.11
 
- getMaxInMemorySizepublic int getMaxInMemorySize()- configuredバイトカウント制限を返します。- 導入:
- 5.1.11
 
- canDecodeインターフェースからコピーされた説明:- Decoderデコーダーが特定のターゲット要素型とソースストリームの 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 にデコードします。- パラメーター:
- 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> input, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable MapSE<StringSE, - ObjectSE> hints) インターフェースからコピーされた説明:- Decoder- DataBuffer入力ストリームを- Tの Mono にデコードします。- 次で指定:
-  インターフェース Decoder<ObjectSE>のdecodeToMono
- オーバーライド:
-  クラス AbstractDecoder<ObjectSE>のdecodeToMono
- パラメーター:
- input- デコードする- DataBuffer入力ストリーム
- elementType- 出力ストリーム内の要素の予想される型。この型は、事前に- Decoder.canDecode(org.springframework.core.ResolvableType, org.springframework.util.MimeType)メソッドに渡されている必要があり、- trueを返している必要があります。
- mimeType- 入力ストリームに関連付けられた MIME 型 (オプション)
- hints- デコード方法に関する追加情報
- 戻り値:
- デコードされた要素を持つ出力ストリーム
 
- decode@NonNull public ObjectSE decode- (DataBuffer dataBuffer, ResolvableType targetType, @Nullable MimeType mimeType, @Nullable MapSE<StringSE, - ObjectSE> hints) throws DecodingExceptionインターフェースからコピーされた説明:- Decoderデータバッファーを型 T のオブジェクトにデコードします。これは、個別のメッセージ(またはイベント)が完全に集約された形式で個別にデコードおよび処理されるシナリオで役立ちます。- パラメーター:
- dataBuffer- デコードする- DataBuffer
- targetType- 予想される出力型
- mimeType- データに関連付けられた MIME 型
- hints- デコード方法に関する追加情報
- 戻り値:
-  デコードされた値、おそらく null
- 例外:
- DecodingException