Uses of Class
org.springframework.data.mongodb.gridfs.GridFsUpload.GridFsUploadBuilder
-
Uses of GridFsUpload.GridFsUploadBuilder in org.springframework.data.mongodb.gridfs
Modifier and TypeMethodDescriptionGridFsUpload.GridFsUploadBuilder.chunkSize
(int chunkSize) Set the upload chunk size in bytes.GridFsUpload.GridFsUploadBuilder.content
(InputStream stream) Define the content of the file to upload.GridFsUpload.GridFsUploadBuilder.content
(Supplier<InputStream> stream) Define the content of the file to upload.GridFsUpload.GridFsUploadBuilder.contentType
(String contentType) Set the content type.Set the filename.static GridFsUpload.GridFsUploadBuilder<org.bson.types.ObjectId>
GridFsUpload.fromStream
(InputStream stream) Create a new instance ofGridFsUpload
for the givenInputStream
.GridFsUpload.GridFsUploadBuilder.gridFsFile
(com.mongodb.client.gridfs.model.GridFSFile gridFSFile) Set id, filename, metadata and chunk size from given file.<T1> GridFsUpload.GridFsUploadBuilder<T1>
GridFsUpload.GridFsUploadBuilder.id
(T1 id) Set the id to use.GridFsUpload.GridFsUploadBuilder.metadata
(org.bson.Document metadata) Set the file metadata.GridFsUpload.GridFsUploadBuilder.options
(GridFsObject.Options options) Set additional file information.