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