クラス AbstractSingleValueEncoder<T>
java.lang.ObjectSE
org.springframework.core.codec.AbstractEncoder<T>
org.springframework.core.codec.AbstractSingleValueEncoder<T>
- 型パラメーター:
T
- 要素型
- 実装されたすべてのインターフェース:
Encoder<T>
- 既知の直属サブクラス
Jaxb2XmlEncoder
,ResourceEncoder
単一の値のみを処理できる
Encoder
クラスの抽象基本クラス。- 導入:
- 5.0
- 作成者:
- Arjen Poutsma
フィールドサマリー
クラス org.springframework.core.codec.AbstractEncoder から継承されたフィールド
logger
コンストラクターのサマリー
メソッドのサマリー
修飾子と型メソッド説明final reactor.core.publisher.Flux<DataBuffer>
encode
(Publisher<? extends T> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, MapSE<StringSE, ObjectSE> hints) 型T
のオブジェクトのストリームをDataBuffer
出力ストリームにエンコードします。protected abstract reactor.core.publisher.Flux<DataBuffer>
encode
(T t, DataBufferFactory dataBufferFactory, ResolvableType type, MimeType mimeType, MapSE<StringSE, ObjectSE> hints) T
を出力DataBuffer
ストリームにエンコードします。クラス org.springframework.core.codec.AbstractEncoder から継承されたメソッド
canEncode, getEncodableMimeTypes, getLogger, setLogger
クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
インターフェース org.springframework.core.codec.Encoder から継承されたメソッド
encodeValue, getEncodableMimeTypes
コンストラクターの詳細
AbstractSingleValueEncoder
メソッドの詳細
encode
public final reactor.core.publisher.Flux<DataBuffer> encode(Publisher<? extends T> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable MapSE<StringSE, ObjectSE> hints) インターフェースからコピーされた説明:Encoder
型T
のオブジェクトのストリームをDataBuffer
出力ストリームにエンコードします。- パラメーター:
inputStream
- エンコードするオブジェクトの入力ストリーム。入力を要素のストリームとしてではなく単一の値としてエンコードする必要がある場合は、Mono
のインスタンスを使用する必要があります。bufferFactory
- 出力ストリームDataBuffer
を作成するためのelementType
- 入力ストリーム内の要素の予想される型。この型は、事前にEncoder.canEncode(org.springframework.core.ResolvableType, org.springframework.util.MimeType)
メソッドに渡されていなければならず、true
を返さなければなりません。mimeType
- 出力コンテンツの MIME 型 (オプション)hints
- エンコード方法に関する追加情報- 戻り値:
- 出力ストリーム
encode
protected abstract reactor.core.publisher.Flux<DataBuffer> encode(T t, DataBufferFactory dataBufferFactory, ResolvableType type, @Nullable MimeType mimeType, @Nullable MapSE<StringSE, ObjectSE> hints) T
を出力DataBuffer
ストリームにエンコードします。- パラメーター:
t
- 処理する値dataBufferFactory
- 出力の作成に使用されるバッファファクトリtype
- 処理するストリーム要素型mimeType
- 処理する MIME 型hints
- デコード方法に関する追加情報、オプション- 戻り値:
- 出力ストリーム