クラス ReactiveGridFsResource
java.lang.ObjectSE
org.springframework.data.mongodb.gridfs.ReactiveGridFsResource
- 実装されているすべてのインターフェース:
GridFsObject<ObjectSE,org.reactivestreams.Publisher<DataBuffer>>
public class ReactiveGridFsResource
extends ObjectSE
implements GridFsObject<ObjectSE,org.reactivestreams.Publisher<DataBuffer>>
- 導入:
- 2.2
- 作成者:
- Mark Paluch, Christoph Strobl
ネストされたクラスの要約
インターフェース org.springframework.data.mongodb.gridfs.GridFsObject から継承されたネストクラス / インターフェース
GridFsObject.Optionsコンストラクターの概要
コンストラクターコンストラクター説明ReactiveGridFsResource(ObjectSE id, StringSE filename, GridFsObject.Options options, com.mongodb.reactivestreams.client.gridfs.GridFSDownloadPublisher downloadPublisher) 存在しない新しいReactiveGridFsResourceを作成します。ReactiveGridFsResource(StringSE filename, com.mongodb.reactivestreams.client.gridfs.GridFSDownloadPublisher downloadPublisher) 存在しない新しいReactiveGridFsResourceを作成します。方法の概要
修飾子と型メソッド説明static ReactiveGridFsResource存在しないReactiveGridFsResourceを取得します。booleanexists()reactor.core.publisher.Flux<DataBuffer>実際のファイルの内容。reactor.core.publisher.Flux<DataBuffer>受信時にデータのチャンクを送信するダウンロードストリームを取得します。reactor.core.publisher.Flux<DataBuffer>getDownloadStream(int chunkSize) 指定されたchunkSizeでデータのチャンクが到着するとそれを送信するダウンロードストリームを取得します。GridFSFile.getId()値を単純な java 型に変換します。ファイル名。reactor.core.publisher.Mono<com.mongodb.client.gridfs.model.GridFSFile>reactor.core.publisher.Mono<InputStreamSE>データをInputStreamSE として取得します。ファイルのメタデータなどの追加情報 (例: contentType)。
コンストラクターの詳細
ReactiveGridFsResource
public ReactiveGridFsResource(StringSE filename, @Nullable com.mongodb.reactivestreams.client.gridfs.GridFSDownloadPublisher downloadPublisher) 存在しない新しいReactiveGridFsResourceを作成します。- パラメーター:
filename- 存在しないリソースのファイル名。downloadPublisher-
ReactiveGridFsResource
public ReactiveGridFsResource(@Nullable ObjectSE id, StringSE filename, GridFsObject.Options options, @Nullable com.mongodb.reactivestreams.client.gridfs.GridFSDownloadPublisher downloadPublisher) 存在しない新しいReactiveGridFsResourceを作成します。- パラメーター:
id-filename- 存在しないリソースのファイル名。options-downloadPublisher-- 導入:
- 3.0
メソッドの詳細
absent
存在しないReactiveGridFsResourceを取得します。- パラメーター:
filename- 存在しないリソースのファイル名は null であってはなりません。- 戻り値:
- 決して null にはなりません。
- 導入:
- 2.1
getFileId
インターフェースからコピーされた説明:GridFsObject- 次で指定:
- インターフェース
GridFsObject<ObjectSE,のorg.reactivestreams.Publisher<DataBuffer>> getFileId - 戻り値:
- 実装によっては null になる場合があります。
getFilename
インターフェースからコピーされた説明:GridFsObjectファイル名。- 次で指定:
- インターフェース
GridFsObject<ObjectSE,のorg.reactivestreams.Publisher<DataBuffer>> getFilename - 戻り値:
- 例外:
IllegalStateExceptionSE- 関連事項:
getGridFSFile
public reactor.core.publisher.Mono<com.mongodb.client.gridfs.model.GridFSFile> getGridFSFile()- 戻り値:
- 基礎となる
GridFSFile。存在しない場合は null になります。 - 導入:
- 2.2
getInputStream
- 例外:
IllegalStateExceptionSE- 基礎となるPublisherがすでに消費されている場合。- 導入:
- 3.0
- 関連事項:
getDownloadStream
受信時にデータのチャンクを送信するダウンロードストリームを取得します。- 戻り値:
- ファイルが存在しない場合は
Flux.empty()です。 - 例外:
IllegalStateExceptionSE- 基礎となるPublisherがすでに消費されている場合。- 導入:
- 3.0
- 関連事項:
getContent
インターフェースからコピーされた説明:GridFsObject実際のファイルの内容。- 次で指定:
- インターフェース
GridFsObject<ObjectSE,のorg.reactivestreams.Publisher<DataBuffer>> getContent - 戻り値:
getOptions
インターフェースからコピーされた説明:GridFsObjectファイルのメタデータなどの追加情報 (例: contentType)。- 次で指定:
- インターフェース
GridFsObject<ObjectSE,のorg.reactivestreams.Publisher<DataBuffer>> getOptions - 戻り値:
- 決して null にはなりません。
getDownloadStream
指定されたchunkSizeでデータのチャンクが到着するとそれを送信するダウンロードストリームを取得します。- パラメーター:
chunkSize- 発行されるDataBufferあたりの推奨バイト数。- 戻り値:
- ファイルが存在しない場合は
Flux.empty()です。 - 例外:
IllegalStateExceptionSE- 基礎となるPublisherがすでに消費されている場合。- 導入:
- 3.0
- 関連事項:
exists
public boolean exists()