public final class GridFSBuckets
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static GridFSBucket |
create(MongoDatabase database)
Create a new GridFS bucket with the default
'fs' bucket name |
static GridFSBucket |
create(MongoDatabase database,
java.lang.String bucketName)
Create a new GridFS bucket with a custom bucket name
|
public static GridFSBucket create(MongoDatabase database)
'fs'
bucket namedatabase
- the database instance to use with GridFSpublic static GridFSBucket create(MongoDatabase database, java.lang.String bucketName)
database
- the database instance to use with GridFSbucketName
- the custom bucket name to use