クラス ResourceEncoder
java.lang.ObjectSE
org.springframework.core.codec.AbstractEncoder<T>
org.springframework.core.codec.AbstractSingleValueEncoder<Resource>
org.springframework.core.codec.ResourceEncoder
Resources
のエンコーダ。- 導入:
- 5.0
- 作成者:
- Arjen Poutsma
フィールドサマリー
クラス org.springframework.core.codec.AbstractEncoder から継承されたフィールド
logger
コンストラクターのサマリー
メソッドのサマリー
修飾子と型メソッド説明boolean
canEncode
(ResolvableType elementType, MimeType mimeType) エンコーダが特定のソース要素型と出力ストリームの MIME 型をサポートするかどうか。protected reactor.core.publisher.Flux<DataBuffer>
encode
(Resource resource, DataBufferFactory bufferFactory, ResolvableType type, MimeType mimeType, MapSE<StringSE, ObjectSE> hints) T
を出力DataBuffer
ストリームにエンコードします。クラス org.springframework.core.codec.AbstractSingleValueEncoder から継承されたメソッド
encode
クラス org.springframework.core.codec.AbstractEncoder から継承されたメソッド
getEncodableMimeTypes, getLogger, setLogger
クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
インターフェース org.springframework.core.codec.Encoder から継承されたメソッド
encodeValue, getEncodableMimeTypes
フィールドの詳細
DEFAULT_BUFFER_SIZE
public static final int DEFAULT_BUFFER_SIZEエンコーダが使用するデフォルトのバッファサイズ。- 関連事項:
コンストラクターの詳細
ResourceEncoder
public ResourceEncoder()ResourceEncoder
public ResourceEncoder(int bufferSize)
メソッドの詳細
canEncode
インターフェースからコピーされた説明:Encoder
エンコーダが特定のソース要素型と出力ストリームの MIME 型をサポートするかどうか。encode
protected reactor.core.publisher.Flux<DataBuffer> encode(Resource resource, DataBufferFactory bufferFactory, ResolvableType type, @Nullable MimeType mimeType, @Nullable MapSE<StringSE, ObjectSE> hints) クラスからコピーされた説明:AbstractSingleValueEncoder
T
を出力DataBuffer
ストリームにエンコードします。- 次で指定:
- クラス
AbstractSingleValueEncoder<Resource>
のencode
- パラメーター:
resource
- 処理する値bufferFactory
- 出力の作成に使用されるバッファファクトリtype
- 処理するストリーム要素型mimeType
- 処理する MIME 型hints
- デコード方法に関する追加情報、オプション- 戻り値:
- 出力ストリーム