クラス ResourceDecoder
java.lang.ObjectSE
org.springframework.core.codec.AbstractDecoder<T>
org.springframework.core.codec.AbstractDataBufferDecoder<Resource>
org.springframework.core.codec.ResourceDecoder
Resources
のデコーダ。- 導入:
- 5.0
- 作成者:
- Arjen Poutsma, Rossen Stoyanchev
フィールドサマリー
クラス org.springframework.core.codec.AbstractDecoder から継承されたフィールド
logger
コンストラクターのサマリー
メソッドのサマリー
修飾子と型メソッド説明boolean
canDecode
(ResolvableType elementType, MimeType mimeType) デコーダーが特定のターゲット要素型とソースストリームの MIME 型をサポートするかどうか。reactor.core.publisher.Flux<Resource>
decode
(Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, MapSE<StringSE, ObjectSE> hints) DataBuffer
入力ストリームをT
の Flux にデコードします。decode
(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, MapSE<StringSE, ObjectSE> hints) データバッファを型 T のオブジェクトにデコードします。クラス org.springframework.core.codec.AbstractDataBufferDecoder から継承されたメソッド
decodeDataBuffer, decodeToMono, getMaxInMemorySize, setMaxInMemorySize
クラス 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
フィールドの詳細
FILENAME_HINT
リソースのファイル名を含むヒントの名前(例: "Content-Disposition" HTTP ヘッダーから)。
コンストラクターの詳細
ResourceDecoder
public ResourceDecoder()
メソッドの詳細
canDecode
インターフェースからコピーされた説明:Decoder
デコーダーが特定のターゲット要素型とソースストリームの MIME 型をサポートするかどうか。decode
public reactor.core.publisher.Flux<Resource> decode(Publisher<DataBuffer> inputStream, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable MapSE<StringSE, ObjectSE> hints) インターフェースからコピーされた説明:Decoder
DataBuffer
入力ストリームをT
の Flux にデコードします。- 次で指定:
- インターフェース
Decoder<Resource>
のdecode
- オーバーライド:
- クラス
AbstractDataBufferDecoder<Resource>
のdecode
- パラメーター:
inputStream
- デコードするDataBuffer
入力ストリームelementType
- 出力ストリーム内の要素の予想される型。この型は、事前にDecoder.canDecode(org.springframework.core.ResolvableType, org.springframework.util.MimeType)
メソッドに渡されている必要があり、true
を返している必要があります。mimeType
- 入力ストリームに関連付けられた MIME 型 (オプション)hints
- デコード方法に関する追加情報- 戻り値:
- デコードされた要素を含む出力ストリーム
decode
public Resource decode(DataBuffer dataBuffer, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable MapSE<StringSE, ObjectSE> hints) インターフェースからコピーされた説明:Decoder
データバッファーを型 T のオブジェクトにデコードします。これは、個別のメッセージ(またはイベント)が完全に集約された形式で個別にデコードおよび処理されるシナリオで役立ちます。- パラメーター:
dataBuffer
- デコードするDataBuffer
elementType
- 予想される出力型mimeType
- データに関連付けられた MIME 型hints
- デコード方法に関する追加情報- 戻り値:
- デコードされた値、おそらく
null