Class GridFsUpload<ID>
java.lang.Object
org.springframework.data.mongodb.gridfs.GridFsUpload<ID>
- All Implemented Interfaces:
 GridFsObject<ID,InputStream> 
Upload descriptor for a GridFS file upload.
- Since:
 - 3.0
 - Author:
 - Christoph Strobl, Mark Paluch
 
- 
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.springframework.data.mongodb.gridfs.GridFsObject
GridFsObject.Options - 
Method Summary
Modifier and TypeMethodDescriptionstatic GridFsUpload.GridFsUploadBuilder<org.bson.types.ObjectId>fromStream(InputStream stream) Create a new instance ofGridFsUploadfor the givenInputStream.The actual file content.TheGridFSFile.getId()value converted into its simple java type.The filename.Additional information like file metadata (eg. contentType). 
- 
Method Details
- 
getFileId
TheGridFSFile.getId()value converted into its simple java type.
ABsonStringwill be converted to plainString.- Specified by:
 getFileIdin interfaceGridFsObject<ID,InputStream> - Returns:
 - can be null.
 - See Also:
 
 - 
getFilename
Description copied from interface:GridFsObjectThe filename.- Specified by:
 getFilenamein interfaceGridFsObject<ID,InputStream> - Returns:
 
 - 
getContent
Description copied from interface:GridFsObjectThe actual file content.- Specified by:
 getContentin interfaceGridFsObject<ID,InputStream> - Returns:
 
 - 
getOptions
Description copied from interface:GridFsObjectAdditional information like file metadata (eg. contentType).- Specified by:
 getOptionsin interfaceGridFsObject<ID,InputStream> - Returns:
 - never null.
 
 - 
fromStream
public static GridFsUpload.GridFsUploadBuilder<org.bson.types.ObjectId> fromStream(InputStream stream) Create a new instance ofGridFsUploadfor the givenInputStream.- Parameters:
 stream- must not be null.- Returns:
 - new instance of 
GridFsUpload. 
 
 -