final class com.mongodb.client.gridfs.GridFSBucketImpl implements com.mongodb.client.gridfs.GridFSBucket
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.mongodb.client.gridfs.GridFSBucketImpl
super_class: java.lang.Object
{
private static final int DEFAULT_CHUNKSIZE_BYTES;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 261120
private final java.lang.String bucketName;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int chunkSizeBytes;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.mongodb.client.MongoCollection<com.mongodb.client.gridfs.model.GridFSFile> filesCollection;
descriptor: Lcom/mongodb/client/MongoCollection;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lcom/mongodb/client/MongoCollection<Lcom/mongodb/client/gridfs/model/GridFSFile;>;
private final com.mongodb.client.MongoCollection<org.bson.Document> chunksCollection;
descriptor: Lcom/mongodb/client/MongoCollection;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lcom/mongodb/client/MongoCollection<Lorg/bson/Document;>;
private final boolean disableMD5;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile boolean checkedIndexes;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
void <init>(com.mongodb.client.MongoDatabase);
descriptor: (Lcom/mongodb/client/MongoDatabase;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
ldc "fs"
invokespecial com.mongodb.client.gridfs.GridFSBucketImpl.<init>:(Lcom/mongodb/client/MongoDatabase;Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 2 1 database Lcom/mongodb/client/MongoDatabase;
MethodParameters:
Name Flags
database final
void <init>(com.mongodb.client.MongoDatabase, java.lang.String);
descriptor: (Lcom/mongodb/client/MongoDatabase;Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
ldc "bucketName"
aload 2
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
ldc 261120
1: ldc "database"
aload 1
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.mongodb.client.MongoDatabase
aload 2
invokestatic com.mongodb.client.gridfs.GridFSBucketImpl.getFilesCollection:(Lcom/mongodb/client/MongoDatabase;Ljava/lang/String;)Lcom/mongodb/client/MongoCollection;
2: aload 1
aload 2
invokestatic com.mongodb.client.gridfs.GridFSBucketImpl.getChunksCollection:(Lcom/mongodb/client/MongoDatabase;Ljava/lang/String;)Lcom/mongodb/client/MongoCollection;
iconst_0
invokespecial com.mongodb.client.gridfs.GridFSBucketImpl.<init>:(Ljava/lang/String;ILcom/mongodb/client/MongoCollection;Lcom/mongodb/client/MongoCollection;Z)V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 4 1 database Lcom/mongodb/client/MongoDatabase;
0 4 2 bucketName Ljava/lang/String;
MethodParameters:
Name Flags
database final
bucketName final
void <init>(java.lang.String, int, com.mongodb.client.MongoCollection<com.mongodb.client.gridfs.model.GridFSFile>, com.mongodb.client.MongoCollection<org.bson.Document>, );
descriptor: (Ljava/lang/String;ILcom/mongodb/client/MongoCollection;Lcom/mongodb/client/MongoCollection;Z)V
flags: (0x0000)
Code:
stack=3, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
ldc "bucketName"
aload 1
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
putfield com.mongodb.client.gridfs.GridFSBucketImpl.bucketName:Ljava/lang/String;
2: aload 0
iload 2
putfield com.mongodb.client.gridfs.GridFSBucketImpl.chunkSizeBytes:I
3: aload 0
ldc "filesCollection"
aload 3
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.mongodb.client.MongoCollection
putfield com.mongodb.client.gridfs.GridFSBucketImpl.filesCollection:Lcom/mongodb/client/MongoCollection;
4: aload 0
ldc "chunksCollection"
aload 4
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.mongodb.client.MongoCollection
putfield com.mongodb.client.gridfs.GridFSBucketImpl.chunksCollection:Lcom/mongodb/client/MongoCollection;
5: aload 0
iload 5
putfield com.mongodb.client.gridfs.GridFSBucketImpl.disableMD5:Z
6: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 7 1 bucketName Ljava/lang/String;
0 7 2 chunkSizeBytes I
0 7 3 filesCollection Lcom/mongodb/client/MongoCollection<Lcom/mongodb/client/gridfs/model/GridFSFile;>;
0 7 4 chunksCollection Lcom/mongodb/client/MongoCollection<Lorg/bson/Document;>;
0 7 5 disableMD5 Z
Signature: (Ljava/lang/String;ILcom/mongodb/client/MongoCollection<Lcom/mongodb/client/gridfs/model/GridFSFile;>;Lcom/mongodb/client/MongoCollection<Lorg/bson/Document;>;Z)V
MethodParameters:
Name Flags
bucketName final
chunkSizeBytes final
filesCollection final
chunksCollection final
disableMD5 final
public java.lang.String getBucketName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.bucketName:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
public int getChunkSizeBytes();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.chunkSizeBytes:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
public com.mongodb.ReadPreference getReadPreference();
descriptor: ()Lcom/mongodb/ReadPreference;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.filesCollection:Lcom/mongodb/client/MongoCollection;
invokeinterface com.mongodb.client.MongoCollection.getReadPreference:()Lcom/mongodb/ReadPreference;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
public com.mongodb.WriteConcern getWriteConcern();
descriptor: ()Lcom/mongodb/WriteConcern;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.filesCollection:Lcom/mongodb/client/MongoCollection;
invokeinterface com.mongodb.client.MongoCollection.getWriteConcern:()Lcom/mongodb/WriteConcern;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
public com.mongodb.ReadConcern getReadConcern();
descriptor: ()Lcom/mongodb/ReadConcern;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.filesCollection:Lcom/mongodb/client/MongoCollection;
invokeinterface com.mongodb.client.MongoCollection.getReadConcern:()Lcom/mongodb/ReadConcern;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
public boolean getDisableMD5();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.disableMD5:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
public com.mongodb.client.gridfs.GridFSBucket withChunkSizeBytes(int);
descriptor: (I)Lcom/mongodb/client/gridfs/GridFSBucket;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=2, args_size=2
start local 0 start local 1 0: new com.mongodb.client.gridfs.GridFSBucketImpl
dup
aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.bucketName:Ljava/lang/String;
iload 1
aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.filesCollection:Lcom/mongodb/client/MongoCollection;
aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.chunksCollection:Lcom/mongodb/client/MongoCollection;
aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.disableMD5:Z
invokespecial com.mongodb.client.gridfs.GridFSBucketImpl.<init>:(Ljava/lang/String;ILcom/mongodb/client/MongoCollection;Lcom/mongodb/client/MongoCollection;Z)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 1 1 chunkSizeBytes I
MethodParameters:
Name Flags
chunkSizeBytes final
public com.mongodb.client.gridfs.GridFSBucket withReadPreference(com.mongodb.ReadPreference);
descriptor: (Lcom/mongodb/ReadPreference;)Lcom/mongodb/client/gridfs/GridFSBucket;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=2, args_size=2
start local 0 start local 1 0: new com.mongodb.client.gridfs.GridFSBucketImpl
dup
aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.bucketName:Ljava/lang/String;
aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.chunkSizeBytes:I
aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.filesCollection:Lcom/mongodb/client/MongoCollection;
aload 1
invokeinterface com.mongodb.client.MongoCollection.withReadPreference:(Lcom/mongodb/ReadPreference;)Lcom/mongodb/client/MongoCollection;
1: aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.chunksCollection:Lcom/mongodb/client/MongoCollection;
aload 1
invokeinterface com.mongodb.client.MongoCollection.withReadPreference:(Lcom/mongodb/ReadPreference;)Lcom/mongodb/client/MongoCollection;
aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.disableMD5:Z
2: invokespecial com.mongodb.client.gridfs.GridFSBucketImpl.<init>:(Ljava/lang/String;ILcom/mongodb/client/MongoCollection;Lcom/mongodb/client/MongoCollection;Z)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 3 1 readPreference Lcom/mongodb/ReadPreference;
MethodParameters:
Name Flags
readPreference final
public com.mongodb.client.gridfs.GridFSBucket withWriteConcern(com.mongodb.WriteConcern);
descriptor: (Lcom/mongodb/WriteConcern;)Lcom/mongodb/client/gridfs/GridFSBucket;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=2, args_size=2
start local 0 start local 1 0: new com.mongodb.client.gridfs.GridFSBucketImpl
dup
aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.bucketName:Ljava/lang/String;
aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.chunkSizeBytes:I
aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.filesCollection:Lcom/mongodb/client/MongoCollection;
aload 1
invokeinterface com.mongodb.client.MongoCollection.withWriteConcern:(Lcom/mongodb/WriteConcern;)Lcom/mongodb/client/MongoCollection;
1: aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.chunksCollection:Lcom/mongodb/client/MongoCollection;
aload 1
invokeinterface com.mongodb.client.MongoCollection.withWriteConcern:(Lcom/mongodb/WriteConcern;)Lcom/mongodb/client/MongoCollection;
aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.disableMD5:Z
2: invokespecial com.mongodb.client.gridfs.GridFSBucketImpl.<init>:(Ljava/lang/String;ILcom/mongodb/client/MongoCollection;Lcom/mongodb/client/MongoCollection;Z)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 3 1 writeConcern Lcom/mongodb/WriteConcern;
MethodParameters:
Name Flags
writeConcern final
public com.mongodb.client.gridfs.GridFSBucket withReadConcern(com.mongodb.ReadConcern);
descriptor: (Lcom/mongodb/ReadConcern;)Lcom/mongodb/client/gridfs/GridFSBucket;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=2, args_size=2
start local 0 start local 1 0: new com.mongodb.client.gridfs.GridFSBucketImpl
dup
aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.bucketName:Ljava/lang/String;
aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.chunkSizeBytes:I
aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.filesCollection:Lcom/mongodb/client/MongoCollection;
aload 1
invokeinterface com.mongodb.client.MongoCollection.withReadConcern:(Lcom/mongodb/ReadConcern;)Lcom/mongodb/client/MongoCollection;
1: aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.chunksCollection:Lcom/mongodb/client/MongoCollection;
aload 1
invokeinterface com.mongodb.client.MongoCollection.withReadConcern:(Lcom/mongodb/ReadConcern;)Lcom/mongodb/client/MongoCollection;
aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.disableMD5:Z
2: invokespecial com.mongodb.client.gridfs.GridFSBucketImpl.<init>:(Ljava/lang/String;ILcom/mongodb/client/MongoCollection;Lcom/mongodb/client/MongoCollection;Z)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 3 1 readConcern Lcom/mongodb/ReadConcern;
MethodParameters:
Name Flags
readConcern final
public com.mongodb.client.gridfs.GridFSBucket withDisableMD5(boolean);
descriptor: (Z)Lcom/mongodb/client/gridfs/GridFSBucket;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=2, args_size=2
start local 0 start local 1 0: new com.mongodb.client.gridfs.GridFSBucketImpl
dup
aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.bucketName:Ljava/lang/String;
aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.chunkSizeBytes:I
aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.filesCollection:Lcom/mongodb/client/MongoCollection;
aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.chunksCollection:Lcom/mongodb/client/MongoCollection;
iload 1
invokespecial com.mongodb.client.gridfs.GridFSBucketImpl.<init>:(Ljava/lang/String;ILcom/mongodb/client/MongoCollection;Lcom/mongodb/client/MongoCollection;Z)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 1 1 disableMD5 Z
MethodParameters:
Name Flags
disableMD5 final
public com.mongodb.client.gridfs.GridFSUploadStream openUploadStream(java.lang.String);
descriptor: (Ljava/lang/String;)Lcom/mongodb/client/gridfs/GridFSUploadStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new org.bson.BsonObjectId
dup
invokespecial org.bson.BsonObjectId.<init>:()V
aload 1
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.openUploadStream:(Lorg/bson/BsonValue;Ljava/lang/String;)Lcom/mongodb/client/gridfs/GridFSUploadStream;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 1 1 filename Ljava/lang/String;
MethodParameters:
Name Flags
filename final
public com.mongodb.client.gridfs.GridFSUploadStream openUploadStream(java.lang.String, com.mongodb.client.gridfs.model.GridFSUploadOptions);
descriptor: (Ljava/lang/String;Lcom/mongodb/client/gridfs/model/GridFSUploadOptions;)Lcom/mongodb/client/gridfs/GridFSUploadStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
new org.bson.BsonObjectId
dup
invokespecial org.bson.BsonObjectId.<init>:()V
aload 1
aload 2
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.openUploadStream:(Lorg/bson/BsonValue;Ljava/lang/String;Lcom/mongodb/client/gridfs/model/GridFSUploadOptions;)Lcom/mongodb/client/gridfs/GridFSUploadStream;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 1 1 filename Ljava/lang/String;
0 1 2 options Lcom/mongodb/client/gridfs/model/GridFSUploadOptions;
MethodParameters:
Name Flags
filename final
options final
public com.mongodb.client.gridfs.GridFSUploadStream openUploadStream(org.bson.BsonValue, java.lang.String);
descriptor: (Lorg/bson/BsonValue;Ljava/lang/String;)Lcom/mongodb/client/gridfs/GridFSUploadStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
new com.mongodb.client.gridfs.model.GridFSUploadOptions
dup
invokespecial com.mongodb.client.gridfs.model.GridFSUploadOptions.<init>:()V
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.openUploadStream:(Lorg/bson/BsonValue;Ljava/lang/String;Lcom/mongodb/client/gridfs/model/GridFSUploadOptions;)Lcom/mongodb/client/gridfs/GridFSUploadStream;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 1 1 id Lorg/bson/BsonValue;
0 1 2 filename Ljava/lang/String;
MethodParameters:
Name Flags
id final
filename final
public com.mongodb.client.gridfs.GridFSUploadStream openUploadStream(org.bson.BsonValue, java.lang.String, com.mongodb.client.gridfs.model.GridFSUploadOptions);
descriptor: (Lorg/bson/BsonValue;Ljava/lang/String;Lcom/mongodb/client/gridfs/model/GridFSUploadOptions;)Lcom/mongodb/client/gridfs/GridFSUploadStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aconst_null
aload 1
aload 2
aload 3
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.createGridFSUploadStream:(Lcom/mongodb/client/ClientSession;Lorg/bson/BsonValue;Ljava/lang/String;Lcom/mongodb/client/gridfs/model/GridFSUploadOptions;)Lcom/mongodb/client/gridfs/GridFSUploadStream;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 1 1 id Lorg/bson/BsonValue;
0 1 2 filename Ljava/lang/String;
0 1 3 options Lcom/mongodb/client/gridfs/model/GridFSUploadOptions;
MethodParameters:
Name Flags
id final
filename final
options final
public com.mongodb.client.gridfs.GridFSUploadStream openUploadStream(com.mongodb.client.ClientSession, java.lang.String);
descriptor: (Lcom/mongodb/client/ClientSession;Ljava/lang/String;)Lcom/mongodb/client/gridfs/GridFSUploadStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
new org.bson.BsonObjectId
dup
invokespecial org.bson.BsonObjectId.<init>:()V
aload 2
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.openUploadStream:(Lcom/mongodb/client/ClientSession;Lorg/bson/BsonValue;Ljava/lang/String;)Lcom/mongodb/client/gridfs/GridFSUploadStream;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 1 1 clientSession Lcom/mongodb/client/ClientSession;
0 1 2 filename Ljava/lang/String;
MethodParameters:
Name Flags
clientSession final
filename final
public com.mongodb.client.gridfs.GridFSUploadStream openUploadStream(com.mongodb.client.ClientSession, java.lang.String, com.mongodb.client.gridfs.model.GridFSUploadOptions);
descriptor: (Lcom/mongodb/client/ClientSession;Ljava/lang/String;Lcom/mongodb/client/gridfs/model/GridFSUploadOptions;)Lcom/mongodb/client/gridfs/GridFSUploadStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
new org.bson.BsonObjectId
dup
invokespecial org.bson.BsonObjectId.<init>:()V
aload 2
aload 3
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.openUploadStream:(Lcom/mongodb/client/ClientSession;Lorg/bson/BsonValue;Ljava/lang/String;Lcom/mongodb/client/gridfs/model/GridFSUploadOptions;)Lcom/mongodb/client/gridfs/GridFSUploadStream;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 1 1 clientSession Lcom/mongodb/client/ClientSession;
0 1 2 filename Ljava/lang/String;
0 1 3 options Lcom/mongodb/client/gridfs/model/GridFSUploadOptions;
MethodParameters:
Name Flags
clientSession final
filename final
options final
public com.mongodb.client.gridfs.GridFSUploadStream openUploadStream(com.mongodb.client.ClientSession, org.bson.types.ObjectId, java.lang.String);
descriptor: (Lcom/mongodb/client/ClientSession;Lorg/bson/types/ObjectId;Ljava/lang/String;)Lcom/mongodb/client/gridfs/GridFSUploadStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
new org.bson.BsonObjectId
dup
aload 2
invokespecial org.bson.BsonObjectId.<init>:(Lorg/bson/types/ObjectId;)V
aload 3
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.openUploadStream:(Lcom/mongodb/client/ClientSession;Lorg/bson/BsonValue;Ljava/lang/String;)Lcom/mongodb/client/gridfs/GridFSUploadStream;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 1 1 clientSession Lcom/mongodb/client/ClientSession;
0 1 2 id Lorg/bson/types/ObjectId;
0 1 3 filename Ljava/lang/String;
MethodParameters:
Name Flags
clientSession final
id final
filename final
public com.mongodb.client.gridfs.GridFSUploadStream openUploadStream(com.mongodb.client.ClientSession, org.bson.BsonValue, java.lang.String);
descriptor: (Lcom/mongodb/client/ClientSession;Lorg/bson/BsonValue;Ljava/lang/String;)Lcom/mongodb/client/gridfs/GridFSUploadStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
aload 3
new com.mongodb.client.gridfs.model.GridFSUploadOptions
dup
invokespecial com.mongodb.client.gridfs.model.GridFSUploadOptions.<init>:()V
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.openUploadStream:(Lcom/mongodb/client/ClientSession;Lorg/bson/BsonValue;Ljava/lang/String;Lcom/mongodb/client/gridfs/model/GridFSUploadOptions;)Lcom/mongodb/client/gridfs/GridFSUploadStream;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 1 1 clientSession Lcom/mongodb/client/ClientSession;
0 1 2 id Lorg/bson/BsonValue;
0 1 3 filename Ljava/lang/String;
MethodParameters:
Name Flags
clientSession final
id final
filename final
public com.mongodb.client.gridfs.GridFSUploadStream openUploadStream(com.mongodb.client.ClientSession, org.bson.BsonValue, java.lang.String, com.mongodb.client.gridfs.model.GridFSUploadOptions);
descriptor: (Lcom/mongodb/client/ClientSession;Lorg/bson/BsonValue;Ljava/lang/String;Lcom/mongodb/client/gridfs/model/GridFSUploadOptions;)Lcom/mongodb/client/gridfs/GridFSUploadStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: ldc "clientSession"
aload 1
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
aload 1
aload 2
aload 3
aload 4
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.createGridFSUploadStream:(Lcom/mongodb/client/ClientSession;Lorg/bson/BsonValue;Ljava/lang/String;Lcom/mongodb/client/gridfs/model/GridFSUploadOptions;)Lcom/mongodb/client/gridfs/GridFSUploadStream;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 2 1 clientSession Lcom/mongodb/client/ClientSession;
0 2 2 id Lorg/bson/BsonValue;
0 2 3 filename Ljava/lang/String;
0 2 4 options Lcom/mongodb/client/gridfs/model/GridFSUploadOptions;
MethodParameters:
Name Flags
clientSession final
id final
filename final
options final
private com.mongodb.client.gridfs.GridFSUploadStream createGridFSUploadStream(com.mongodb.client.ClientSession, org.bson.BsonValue, java.lang.String, com.mongodb.client.gridfs.model.GridFSUploadOptions);
descriptor: (Lcom/mongodb/client/ClientSession;Lorg/bson/BsonValue;Ljava/lang/String;Lcom/mongodb/client/gridfs/model/GridFSUploadOptions;)Lcom/mongodb/client/gridfs/GridFSUploadStream;
flags: (0x0002) ACC_PRIVATE
Code:
stack=10, locals=7, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: ldc "options"
aload 4
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 4
invokevirtual com.mongodb.client.gridfs.model.GridFSUploadOptions.getChunkSizeBytes:()Ljava/lang/Integer;
astore 5
start local 5 2: aload 5
ifnonnull 3
aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.chunkSizeBytes:I
goto 4
StackMap locals: java.lang.Integer
StackMap stack:
3: aload 5
invokevirtual java.lang.Integer.intValue:()I
StackMap locals:
StackMap stack: int
4: istore 6
start local 6 5: aload 0
aload 1
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.checkCreateIndex:(Lcom/mongodb/client/ClientSession;)V
6: new com.mongodb.client.gridfs.GridFSUploadStreamImpl
dup
aload 1
aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.filesCollection:Lcom/mongodb/client/MongoCollection;
aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.chunksCollection:Lcom/mongodb/client/MongoCollection;
aload 2
aload 3
iload 6
7: aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.disableMD5:Z
aload 4
invokevirtual com.mongodb.client.gridfs.model.GridFSUploadOptions.getMetadata:()Lorg/bson/Document;
8: invokespecial com.mongodb.client.gridfs.GridFSUploadStreamImpl.<init>:(Lcom/mongodb/client/ClientSession;Lcom/mongodb/client/MongoCollection;Lcom/mongodb/client/MongoCollection;Lorg/bson/BsonValue;Ljava/lang/String;IZLorg/bson/Document;)V
areturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 9 1 clientSession Lcom/mongodb/client/ClientSession;
0 9 2 id Lorg/bson/BsonValue;
0 9 3 filename Ljava/lang/String;
0 9 4 options Lcom/mongodb/client/gridfs/model/GridFSUploadOptions;
2 9 5 chunkSizeBytes Ljava/lang/Integer;
5 9 6 chunkSize I
RuntimeVisibleParameterAnnotations:
0:
com.mongodb.lang.Nullable()
1:
2:
3:
MethodParameters:
Name Flags
clientSession final
id final
filename final
options final
public org.bson.types.ObjectId uploadFromStream(java.lang.String, java.io.InputStream);
descriptor: (Ljava/lang/String;Ljava/io/InputStream;)Lorg/bson/types/ObjectId;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
new com.mongodb.client.gridfs.model.GridFSUploadOptions
dup
invokespecial com.mongodb.client.gridfs.model.GridFSUploadOptions.<init>:()V
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.uploadFromStream:(Ljava/lang/String;Ljava/io/InputStream;Lcom/mongodb/client/gridfs/model/GridFSUploadOptions;)Lorg/bson/types/ObjectId;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 1 1 filename Ljava/lang/String;
0 1 2 source Ljava/io/InputStream;
MethodParameters:
Name Flags
filename final
source final
public org.bson.types.ObjectId uploadFromStream(java.lang.String, java.io.InputStream, com.mongodb.client.gridfs.model.GridFSUploadOptions);
descriptor: (Ljava/lang/String;Ljava/io/InputStream;Lcom/mongodb/client/gridfs/model/GridFSUploadOptions;)Lorg/bson/types/ObjectId;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new org.bson.types.ObjectId
dup
invokespecial org.bson.types.ObjectId.<init>:()V
astore 4
start local 4 1: aload 0
new org.bson.BsonObjectId
dup
aload 4
invokespecial org.bson.BsonObjectId.<init>:(Lorg/bson/types/ObjectId;)V
aload 1
aload 2
aload 3
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.uploadFromStream:(Lorg/bson/BsonValue;Ljava/lang/String;Ljava/io/InputStream;Lcom/mongodb/client/gridfs/model/GridFSUploadOptions;)V
2: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 3 1 filename Ljava/lang/String;
0 3 2 source Ljava/io/InputStream;
0 3 3 options Lcom/mongodb/client/gridfs/model/GridFSUploadOptions;
1 3 4 id Lorg/bson/types/ObjectId;
MethodParameters:
Name Flags
filename final
source final
options final
public void uploadFromStream(org.bson.BsonValue, java.lang.String, java.io.InputStream);
descriptor: (Lorg/bson/BsonValue;Ljava/lang/String;Ljava/io/InputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
aload 3
new com.mongodb.client.gridfs.model.GridFSUploadOptions
dup
invokespecial com.mongodb.client.gridfs.model.GridFSUploadOptions.<init>:()V
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.uploadFromStream:(Lorg/bson/BsonValue;Ljava/lang/String;Ljava/io/InputStream;Lcom/mongodb/client/gridfs/model/GridFSUploadOptions;)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 2 1 id Lorg/bson/BsonValue;
0 2 2 filename Ljava/lang/String;
0 2 3 source Ljava/io/InputStream;
MethodParameters:
Name Flags
id final
filename final
source final
public void uploadFromStream(org.bson.BsonValue, java.lang.String, java.io.InputStream, com.mongodb.client.gridfs.model.GridFSUploadOptions);
descriptor: (Lorg/bson/BsonValue;Ljava/lang/String;Ljava/io/InputStream;Lcom/mongodb/client/gridfs/model/GridFSUploadOptions;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aconst_null
aload 1
aload 2
aload 3
aload 4
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.executeUploadFromStream:(Lcom/mongodb/client/ClientSession;Lorg/bson/BsonValue;Ljava/lang/String;Ljava/io/InputStream;Lcom/mongodb/client/gridfs/model/GridFSUploadOptions;)V
1: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 2 1 id Lorg/bson/BsonValue;
0 2 2 filename Ljava/lang/String;
0 2 3 source Ljava/io/InputStream;
0 2 4 options Lcom/mongodb/client/gridfs/model/GridFSUploadOptions;
MethodParameters:
Name Flags
id final
filename final
source final
options final
public org.bson.types.ObjectId uploadFromStream(com.mongodb.client.ClientSession, java.lang.String, java.io.InputStream);
descriptor: (Lcom/mongodb/client/ClientSession;Ljava/lang/String;Ljava/io/InputStream;)Lorg/bson/types/ObjectId;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
aload 3
new com.mongodb.client.gridfs.model.GridFSUploadOptions
dup
invokespecial com.mongodb.client.gridfs.model.GridFSUploadOptions.<init>:()V
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.uploadFromStream:(Lcom/mongodb/client/ClientSession;Ljava/lang/String;Ljava/io/InputStream;Lcom/mongodb/client/gridfs/model/GridFSUploadOptions;)Lorg/bson/types/ObjectId;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 1 1 clientSession Lcom/mongodb/client/ClientSession;
0 1 2 filename Ljava/lang/String;
0 1 3 source Ljava/io/InputStream;
MethodParameters:
Name Flags
clientSession final
filename final
source final
public org.bson.types.ObjectId uploadFromStream(com.mongodb.client.ClientSession, java.lang.String, java.io.InputStream, com.mongodb.client.gridfs.model.GridFSUploadOptions);
descriptor: (Lcom/mongodb/client/ClientSession;Ljava/lang/String;Ljava/io/InputStream;Lcom/mongodb/client/gridfs/model/GridFSUploadOptions;)Lorg/bson/types/ObjectId;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: new org.bson.types.ObjectId
dup
invokespecial org.bson.types.ObjectId.<init>:()V
astore 5
start local 5 1: aload 0
aload 1
new org.bson.BsonObjectId
dup
aload 5
invokespecial org.bson.BsonObjectId.<init>:(Lorg/bson/types/ObjectId;)V
aload 2
aload 3
aload 4
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.uploadFromStream:(Lcom/mongodb/client/ClientSession;Lorg/bson/BsonValue;Ljava/lang/String;Ljava/io/InputStream;Lcom/mongodb/client/gridfs/model/GridFSUploadOptions;)V
2: aload 5
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 3 1 clientSession Lcom/mongodb/client/ClientSession;
0 3 2 filename Ljava/lang/String;
0 3 3 source Ljava/io/InputStream;
0 3 4 options Lcom/mongodb/client/gridfs/model/GridFSUploadOptions;
1 3 5 id Lorg/bson/types/ObjectId;
MethodParameters:
Name Flags
clientSession final
filename final
source final
options final
public void uploadFromStream(com.mongodb.client.ClientSession, org.bson.BsonValue, java.lang.String, java.io.InputStream);
descriptor: (Lcom/mongodb/client/ClientSession;Lorg/bson/BsonValue;Ljava/lang/String;Ljava/io/InputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
aload 2
aload 3
aload 4
new com.mongodb.client.gridfs.model.GridFSUploadOptions
dup
invokespecial com.mongodb.client.gridfs.model.GridFSUploadOptions.<init>:()V
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.uploadFromStream:(Lcom/mongodb/client/ClientSession;Lorg/bson/BsonValue;Ljava/lang/String;Ljava/io/InputStream;Lcom/mongodb/client/gridfs/model/GridFSUploadOptions;)V
1: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 2 1 clientSession Lcom/mongodb/client/ClientSession;
0 2 2 id Lorg/bson/BsonValue;
0 2 3 filename Ljava/lang/String;
0 2 4 source Ljava/io/InputStream;
MethodParameters:
Name Flags
clientSession final
id final
filename final
source final
public void uploadFromStream(com.mongodb.client.ClientSession, org.bson.BsonValue, java.lang.String, java.io.InputStream, com.mongodb.client.gridfs.model.GridFSUploadOptions);
descriptor: (Lcom/mongodb/client/ClientSession;Lorg/bson/BsonValue;Ljava/lang/String;Ljava/io/InputStream;Lcom/mongodb/client/gridfs/model/GridFSUploadOptions;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: ldc "clientSession"
aload 1
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
aload 1
aload 2
aload 3
aload 4
aload 5
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.executeUploadFromStream:(Lcom/mongodb/client/ClientSession;Lorg/bson/BsonValue;Ljava/lang/String;Ljava/io/InputStream;Lcom/mongodb/client/gridfs/model/GridFSUploadOptions;)V
2: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 3 1 clientSession Lcom/mongodb/client/ClientSession;
0 3 2 id Lorg/bson/BsonValue;
0 3 3 filename Ljava/lang/String;
0 3 4 source Ljava/io/InputStream;
0 3 5 options Lcom/mongodb/client/gridfs/model/GridFSUploadOptions;
MethodParameters:
Name Flags
clientSession final
id final
filename final
source final
options final
private void executeUploadFromStream(com.mongodb.client.ClientSession, org.bson.BsonValue, java.lang.String, java.io.InputStream, com.mongodb.client.gridfs.model.GridFSUploadOptions);
descriptor: (Lcom/mongodb/client/ClientSession;Lorg/bson/BsonValue;Ljava/lang/String;Ljava/io/InputStream;Lcom/mongodb/client/gridfs/model/GridFSUploadOptions;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=12, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
aload 1
aload 2
aload 3
aload 5
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.createGridFSUploadStream:(Lcom/mongodb/client/ClientSession;Lorg/bson/BsonValue;Ljava/lang/String;Lcom/mongodb/client/gridfs/model/GridFSUploadOptions;)Lcom/mongodb/client/gridfs/GridFSUploadStream;
astore 6
start local 6 1: aload 5
invokevirtual com.mongodb.client.gridfs.model.GridFSUploadOptions.getChunkSizeBytes:()Ljava/lang/Integer;
astore 7
start local 7 2: aload 7
ifnonnull 3
aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.chunkSizeBytes:I
goto 4
StackMap locals: com.mongodb.client.gridfs.GridFSUploadStream java.lang.Integer
StackMap stack:
3: aload 7
invokevirtual java.lang.Integer.intValue:()I
StackMap locals:
StackMap stack: int
4: istore 8
start local 8 5: iload 8
newarray 8
astore 9
start local 9 6: goto 8
start local 10 7: StackMap locals: int byte[] int
StackMap stack:
aload 6
aload 9
iconst_0
iload 10
invokevirtual com.mongodb.client.gridfs.GridFSUploadStream.write:([BII)V
end local 10 8: StackMap locals:
StackMap stack:
aload 4
aload 9
invokevirtual java.io.InputStream.read:([B)I
dup
istore 10
start local 10 9: iconst_m1
if_icmpne 7
10: aload 6
invokevirtual com.mongodb.client.gridfs.GridFSUploadStream.close:()V
11: goto 15
end local 10 StackMap locals:
StackMap stack: java.io.IOException
12: astore 11
start local 11 13: aload 6
invokevirtual com.mongodb.client.gridfs.GridFSUploadStream.abort:()V
14: new com.mongodb.MongoGridFSException
dup
ldc "IOException when reading from the InputStream"
aload 11
invokespecial com.mongodb.MongoGridFSException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 11 start local 10 15: StackMap locals: int
StackMap stack:
return
end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 16 1 clientSession Lcom/mongodb/client/ClientSession;
0 16 2 id Lorg/bson/BsonValue;
0 16 3 filename Ljava/lang/String;
0 16 4 source Ljava/io/InputStream;
0 16 5 options Lcom/mongodb/client/gridfs/model/GridFSUploadOptions;
1 16 6 uploadStream Lcom/mongodb/client/gridfs/GridFSUploadStream;
2 16 7 chunkSizeBytes Ljava/lang/Integer;
5 16 8 chunkSize I
6 16 9 buffer [B
7 8 10 len I
9 12 10 len I
15 16 10 len I
13 15 11 e Ljava/io/IOException;
Exception table:
from to target type
6 11 12 Class java.io.IOException
RuntimeVisibleParameterAnnotations:
0:
com.mongodb.lang.Nullable()
1:
2:
3:
4:
MethodParameters:
Name Flags
clientSession final
id final
filename final
source final
options final
public com.mongodb.client.gridfs.GridFSDownloadStream openDownloadStream(org.bson.types.ObjectId);
descriptor: (Lorg/bson/types/ObjectId;)Lcom/mongodb/client/gridfs/GridFSDownloadStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new org.bson.BsonObjectId
dup
aload 1
invokespecial org.bson.BsonObjectId.<init>:(Lorg/bson/types/ObjectId;)V
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.openDownloadStream:(Lorg/bson/BsonValue;)Lcom/mongodb/client/gridfs/GridFSDownloadStream;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 1 1 id Lorg/bson/types/ObjectId;
MethodParameters:
Name Flags
id final
public com.mongodb.client.gridfs.GridFSDownloadStream openDownloadStream(org.bson.BsonValue);
descriptor: (Lorg/bson/BsonValue;)Lcom/mongodb/client/gridfs/GridFSDownloadStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aconst_null
aload 0
aconst_null
aload 1
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.getFileInfoById:(Lcom/mongodb/client/ClientSession;Lorg/bson/BsonValue;)Lcom/mongodb/client/gridfs/model/GridFSFile;
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.createGridFSDownloadStream:(Lcom/mongodb/client/ClientSession;Lcom/mongodb/client/gridfs/model/GridFSFile;)Lcom/mongodb/client/gridfs/GridFSDownloadStream;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 1 1 id Lorg/bson/BsonValue;
MethodParameters:
Name Flags
id final
public com.mongodb.client.gridfs.GridFSDownloadStream openDownloadStream(java.lang.String);
descriptor: (Ljava/lang/String;)Lcom/mongodb/client/gridfs/GridFSDownloadStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
new com.mongodb.client.gridfs.model.GridFSDownloadOptions
dup
invokespecial com.mongodb.client.gridfs.model.GridFSDownloadOptions.<init>:()V
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.openDownloadStream:(Ljava/lang/String;Lcom/mongodb/client/gridfs/model/GridFSDownloadOptions;)Lcom/mongodb/client/gridfs/GridFSDownloadStream;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 1 1 filename Ljava/lang/String;
MethodParameters:
Name Flags
filename final
public com.mongodb.client.gridfs.GridFSDownloadStream openDownloadStream(java.lang.String, com.mongodb.client.gridfs.model.GridFSDownloadOptions);
descriptor: (Ljava/lang/String;Lcom/mongodb/client/gridfs/model/GridFSDownloadOptions;)Lcom/mongodb/client/gridfs/GridFSDownloadStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aconst_null
aload 0
aconst_null
aload 1
aload 2
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.getFileByName:(Lcom/mongodb/client/ClientSession;Ljava/lang/String;Lcom/mongodb/client/gridfs/model/GridFSDownloadOptions;)Lcom/mongodb/client/gridfs/model/GridFSFile;
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.createGridFSDownloadStream:(Lcom/mongodb/client/ClientSession;Lcom/mongodb/client/gridfs/model/GridFSFile;)Lcom/mongodb/client/gridfs/GridFSDownloadStream;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 1 1 filename Ljava/lang/String;
0 1 2 options Lcom/mongodb/client/gridfs/model/GridFSDownloadOptions;
MethodParameters:
Name Flags
filename final
options final
public com.mongodb.client.gridfs.GridFSDownloadStream openDownloadStream(com.mongodb.client.ClientSession, org.bson.types.ObjectId);
descriptor: (Lcom/mongodb/client/ClientSession;Lorg/bson/types/ObjectId;)Lcom/mongodb/client/gridfs/GridFSDownloadStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
new org.bson.BsonObjectId
dup
aload 2
invokespecial org.bson.BsonObjectId.<init>:(Lorg/bson/types/ObjectId;)V
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.openDownloadStream:(Lcom/mongodb/client/ClientSession;Lorg/bson/BsonValue;)Lcom/mongodb/client/gridfs/GridFSDownloadStream;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 1 1 clientSession Lcom/mongodb/client/ClientSession;
0 1 2 id Lorg/bson/types/ObjectId;
MethodParameters:
Name Flags
clientSession final
id final
public com.mongodb.client.gridfs.GridFSDownloadStream openDownloadStream(com.mongodb.client.ClientSession, org.bson.BsonValue);
descriptor: (Lcom/mongodb/client/ClientSession;Lorg/bson/BsonValue;)Lcom/mongodb/client/gridfs/GridFSDownloadStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: ldc "clientSession"
aload 1
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
aload 1
aload 0
aload 1
aload 2
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.getFileInfoById:(Lcom/mongodb/client/ClientSession;Lorg/bson/BsonValue;)Lcom/mongodb/client/gridfs/model/GridFSFile;
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.createGridFSDownloadStream:(Lcom/mongodb/client/ClientSession;Lcom/mongodb/client/gridfs/model/GridFSFile;)Lcom/mongodb/client/gridfs/GridFSDownloadStream;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 2 1 clientSession Lcom/mongodb/client/ClientSession;
0 2 2 id Lorg/bson/BsonValue;
MethodParameters:
Name Flags
clientSession final
id final
public com.mongodb.client.gridfs.GridFSDownloadStream openDownloadStream(com.mongodb.client.ClientSession, java.lang.String);
descriptor: (Lcom/mongodb/client/ClientSession;Ljava/lang/String;)Lcom/mongodb/client/gridfs/GridFSDownloadStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
new com.mongodb.client.gridfs.model.GridFSDownloadOptions
dup
invokespecial com.mongodb.client.gridfs.model.GridFSDownloadOptions.<init>:()V
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.openDownloadStream:(Lcom/mongodb/client/ClientSession;Ljava/lang/String;Lcom/mongodb/client/gridfs/model/GridFSDownloadOptions;)Lcom/mongodb/client/gridfs/GridFSDownloadStream;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 1 1 clientSession Lcom/mongodb/client/ClientSession;
0 1 2 filename Ljava/lang/String;
MethodParameters:
Name Flags
clientSession final
filename final
public com.mongodb.client.gridfs.GridFSDownloadStream openDownloadStream(com.mongodb.client.ClientSession, java.lang.String, com.mongodb.client.gridfs.model.GridFSDownloadOptions);
descriptor: (Lcom/mongodb/client/ClientSession;Ljava/lang/String;Lcom/mongodb/client/gridfs/model/GridFSDownloadOptions;)Lcom/mongodb/client/gridfs/GridFSDownloadStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: ldc "clientSession"
aload 1
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
aload 1
aload 0
aload 1
aload 2
aload 3
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.getFileByName:(Lcom/mongodb/client/ClientSession;Ljava/lang/String;Lcom/mongodb/client/gridfs/model/GridFSDownloadOptions;)Lcom/mongodb/client/gridfs/model/GridFSFile;
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.createGridFSDownloadStream:(Lcom/mongodb/client/ClientSession;Lcom/mongodb/client/gridfs/model/GridFSFile;)Lcom/mongodb/client/gridfs/GridFSDownloadStream;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 2 1 clientSession Lcom/mongodb/client/ClientSession;
0 2 2 filename Ljava/lang/String;
0 2 3 options Lcom/mongodb/client/gridfs/model/GridFSDownloadOptions;
MethodParameters:
Name Flags
clientSession final
filename final
options final
private com.mongodb.client.gridfs.GridFSDownloadStream createGridFSDownloadStream(com.mongodb.client.ClientSession, com.mongodb.client.gridfs.model.GridFSFile);
descriptor: (Lcom/mongodb/client/ClientSession;Lcom/mongodb/client/gridfs/model/GridFSFile;)Lcom/mongodb/client/gridfs/GridFSDownloadStream;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new com.mongodb.client.gridfs.GridFSDownloadStreamImpl
dup
aload 1
aload 2
aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.chunksCollection:Lcom/mongodb/client/MongoCollection;
invokespecial com.mongodb.client.gridfs.GridFSDownloadStreamImpl.<init>:(Lcom/mongodb/client/ClientSession;Lcom/mongodb/client/gridfs/model/GridFSFile;Lcom/mongodb/client/MongoCollection;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 1 1 clientSession Lcom/mongodb/client/ClientSession;
0 1 2 gridFSFile Lcom/mongodb/client/gridfs/model/GridFSFile;
RuntimeVisibleParameterAnnotations:
0:
com.mongodb.lang.Nullable()
1:
MethodParameters:
Name Flags
clientSession final
gridFSFile final
public void downloadToStream(org.bson.types.ObjectId, java.io.OutputStream);
descriptor: (Lorg/bson/types/ObjectId;Ljava/io/OutputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
new org.bson.BsonObjectId
dup
aload 1
invokespecial org.bson.BsonObjectId.<init>:(Lorg/bson/types/ObjectId;)V
aload 2
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.downloadToStream:(Lorg/bson/BsonValue;Ljava/io/OutputStream;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 2 1 id Lorg/bson/types/ObjectId;
0 2 2 destination Ljava/io/OutputStream;
MethodParameters:
Name Flags
id final
destination final
public void downloadToStream(org.bson.BsonValue, java.io.OutputStream);
descriptor: (Lorg/bson/BsonValue;Ljava/io/OutputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 0
aload 1
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.openDownloadStream:(Lorg/bson/BsonValue;)Lcom/mongodb/client/gridfs/GridFSDownloadStream;
aload 2
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.downloadToStream:(Lcom/mongodb/client/gridfs/GridFSDownloadStream;Ljava/io/OutputStream;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 2 1 id Lorg/bson/BsonValue;
0 2 2 destination Ljava/io/OutputStream;
MethodParameters:
Name Flags
id final
destination final
public void downloadToStream(java.lang.String, java.io.OutputStream);
descriptor: (Ljava/lang/String;Ljava/io/OutputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
new com.mongodb.client.gridfs.model.GridFSDownloadOptions
dup
invokespecial com.mongodb.client.gridfs.model.GridFSDownloadOptions.<init>:()V
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.downloadToStream:(Ljava/lang/String;Ljava/io/OutputStream;Lcom/mongodb/client/gridfs/model/GridFSDownloadOptions;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 2 1 filename Ljava/lang/String;
0 2 2 destination Ljava/io/OutputStream;
MethodParameters:
Name Flags
filename final
destination final
public void downloadToStream(java.lang.String, java.io.OutputStream, com.mongodb.client.gridfs.model.GridFSDownloadOptions);
descriptor: (Ljava/lang/String;Ljava/io/OutputStream;Lcom/mongodb/client/gridfs/model/GridFSDownloadOptions;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 0
aload 1
aload 3
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.openDownloadStream:(Ljava/lang/String;Lcom/mongodb/client/gridfs/model/GridFSDownloadOptions;)Lcom/mongodb/client/gridfs/GridFSDownloadStream;
aload 2
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.downloadToStream:(Lcom/mongodb/client/gridfs/GridFSDownloadStream;Ljava/io/OutputStream;)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 2 1 filename Ljava/lang/String;
0 2 2 destination Ljava/io/OutputStream;
0 2 3 options Lcom/mongodb/client/gridfs/model/GridFSDownloadOptions;
MethodParameters:
Name Flags
filename final
destination final
options final
public void downloadToStream(com.mongodb.client.ClientSession, org.bson.types.ObjectId, java.io.OutputStream);
descriptor: (Lcom/mongodb/client/ClientSession;Lorg/bson/types/ObjectId;Ljava/io/OutputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
new org.bson.BsonObjectId
dup
aload 2
invokespecial org.bson.BsonObjectId.<init>:(Lorg/bson/types/ObjectId;)V
aload 3
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.downloadToStream:(Lcom/mongodb/client/ClientSession;Lorg/bson/BsonValue;Ljava/io/OutputStream;)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 2 1 clientSession Lcom/mongodb/client/ClientSession;
0 2 2 id Lorg/bson/types/ObjectId;
0 2 3 destination Ljava/io/OutputStream;
MethodParameters:
Name Flags
clientSession final
id final
destination final
public void downloadToStream(com.mongodb.client.ClientSession, org.bson.BsonValue, java.io.OutputStream);
descriptor: (Lcom/mongodb/client/ClientSession;Lorg/bson/BsonValue;Ljava/io/OutputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: ldc "clientSession"
aload 1
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
aload 0
aload 1
aload 2
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.openDownloadStream:(Lcom/mongodb/client/ClientSession;Lorg/bson/BsonValue;)Lcom/mongodb/client/gridfs/GridFSDownloadStream;
aload 3
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.downloadToStream:(Lcom/mongodb/client/gridfs/GridFSDownloadStream;Ljava/io/OutputStream;)V
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 3 1 clientSession Lcom/mongodb/client/ClientSession;
0 3 2 id Lorg/bson/BsonValue;
0 3 3 destination Ljava/io/OutputStream;
MethodParameters:
Name Flags
clientSession final
id final
destination final
public void downloadToStream(com.mongodb.client.ClientSession, java.lang.String, java.io.OutputStream);
descriptor: (Lcom/mongodb/client/ClientSession;Ljava/lang/String;Ljava/io/OutputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
aload 3
new com.mongodb.client.gridfs.model.GridFSDownloadOptions
dup
invokespecial com.mongodb.client.gridfs.model.GridFSDownloadOptions.<init>:()V
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.downloadToStream:(Lcom/mongodb/client/ClientSession;Ljava/lang/String;Ljava/io/OutputStream;Lcom/mongodb/client/gridfs/model/GridFSDownloadOptions;)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 2 1 clientSession Lcom/mongodb/client/ClientSession;
0 2 2 filename Ljava/lang/String;
0 2 3 destination Ljava/io/OutputStream;
MethodParameters:
Name Flags
clientSession final
filename final
destination final
public void downloadToStream(com.mongodb.client.ClientSession, java.lang.String, java.io.OutputStream, com.mongodb.client.gridfs.model.GridFSDownloadOptions);
descriptor: (Lcom/mongodb/client/ClientSession;Ljava/lang/String;Ljava/io/OutputStream;Lcom/mongodb/client/gridfs/model/GridFSDownloadOptions;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: ldc "clientSession"
aload 1
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
aload 0
aload 1
aload 2
aload 4
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.openDownloadStream:(Lcom/mongodb/client/ClientSession;Ljava/lang/String;Lcom/mongodb/client/gridfs/model/GridFSDownloadOptions;)Lcom/mongodb/client/gridfs/GridFSDownloadStream;
aload 3
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.downloadToStream:(Lcom/mongodb/client/gridfs/GridFSDownloadStream;Ljava/io/OutputStream;)V
2: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 3 1 clientSession Lcom/mongodb/client/ClientSession;
0 3 2 filename Ljava/lang/String;
0 3 3 destination Ljava/io/OutputStream;
0 3 4 options Lcom/mongodb/client/gridfs/model/GridFSDownloadOptions;
MethodParameters:
Name Flags
clientSession final
filename final
destination final
options final
public com.mongodb.client.gridfs.GridFSFindIterable find();
descriptor: ()Lcom/mongodb/client/gridfs/GridFSFindIterable;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
aconst_null
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.createGridFSFindIterable:(Lcom/mongodb/client/ClientSession;Lorg/bson/conversions/Bson;)Lcom/mongodb/client/gridfs/GridFSFindIterable;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
public com.mongodb.client.gridfs.GridFSFindIterable find(org.bson.conversions.Bson);
descriptor: (Lorg/bson/conversions/Bson;)Lcom/mongodb/client/gridfs/GridFSFindIterable;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: ldc "filter"
aload 1
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
aconst_null
aload 1
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.createGridFSFindIterable:(Lcom/mongodb/client/ClientSession;Lorg/bson/conversions/Bson;)Lcom/mongodb/client/gridfs/GridFSFindIterable;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 2 1 filter Lorg/bson/conversions/Bson;
MethodParameters:
Name Flags
filter final
public com.mongodb.client.gridfs.GridFSFindIterable find(com.mongodb.client.ClientSession);
descriptor: (Lcom/mongodb/client/ClientSession;)Lcom/mongodb/client/gridfs/GridFSFindIterable;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: ldc "clientSession"
aload 1
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
aload 1
aconst_null
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.createGridFSFindIterable:(Lcom/mongodb/client/ClientSession;Lorg/bson/conversions/Bson;)Lcom/mongodb/client/gridfs/GridFSFindIterable;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 2 1 clientSession Lcom/mongodb/client/ClientSession;
MethodParameters:
Name Flags
clientSession final
public com.mongodb.client.gridfs.GridFSFindIterable find(com.mongodb.client.ClientSession, org.bson.conversions.Bson);
descriptor: (Lcom/mongodb/client/ClientSession;Lorg/bson/conversions/Bson;)Lcom/mongodb/client/gridfs/GridFSFindIterable;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: ldc "clientSession"
aload 1
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: ldc "filter"
aload 2
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 0
aload 1
aload 2
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.createGridFSFindIterable:(Lcom/mongodb/client/ClientSession;Lorg/bson/conversions/Bson;)Lcom/mongodb/client/gridfs/GridFSFindIterable;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 3 1 clientSession Lcom/mongodb/client/ClientSession;
0 3 2 filter Lorg/bson/conversions/Bson;
MethodParameters:
Name Flags
clientSession final
filter final
private com.mongodb.client.gridfs.GridFSFindIterable createGridFSFindIterable(com.mongodb.client.ClientSession, org.bson.conversions.Bson);
descriptor: (Lcom/mongodb/client/ClientSession;Lorg/bson/conversions/Bson;)Lcom/mongodb/client/gridfs/GridFSFindIterable;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new com.mongodb.client.gridfs.GridFSFindIterableImpl
dup
aload 0
aload 1
aload 2
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.createFindIterable:(Lcom/mongodb/client/ClientSession;Lorg/bson/conversions/Bson;)Lcom/mongodb/client/FindIterable;
invokespecial com.mongodb.client.gridfs.GridFSFindIterableImpl.<init>:(Lcom/mongodb/client/FindIterable;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 1 1 clientSession Lcom/mongodb/client/ClientSession;
0 1 2 filter Lorg/bson/conversions/Bson;
RuntimeVisibleParameterAnnotations:
0:
com.mongodb.lang.Nullable()
1:
com.mongodb.lang.Nullable()
MethodParameters:
Name Flags
clientSession final
filter final
public void delete(org.bson.types.ObjectId);
descriptor: (Lorg/bson/types/ObjectId;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new org.bson.BsonObjectId
dup
aload 1
invokespecial org.bson.BsonObjectId.<init>:(Lorg/bson/types/ObjectId;)V
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.delete:(Lorg/bson/BsonValue;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 2 1 id Lorg/bson/types/ObjectId;
MethodParameters:
Name Flags
id final
public void delete(org.bson.BsonValue);
descriptor: (Lorg/bson/BsonValue;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aconst_null
aload 1
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.executeDelete:(Lcom/mongodb/client/ClientSession;Lorg/bson/BsonValue;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 2 1 id Lorg/bson/BsonValue;
MethodParameters:
Name Flags
id final
public void delete(com.mongodb.client.ClientSession, org.bson.types.ObjectId);
descriptor: (Lcom/mongodb/client/ClientSession;Lorg/bson/types/ObjectId;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
new org.bson.BsonObjectId
dup
aload 2
invokespecial org.bson.BsonObjectId.<init>:(Lorg/bson/types/ObjectId;)V
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.delete:(Lcom/mongodb/client/ClientSession;Lorg/bson/BsonValue;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 2 1 clientSession Lcom/mongodb/client/ClientSession;
0 2 2 id Lorg/bson/types/ObjectId;
MethodParameters:
Name Flags
clientSession final
id final
public void delete(com.mongodb.client.ClientSession, org.bson.BsonValue);
descriptor: (Lcom/mongodb/client/ClientSession;Lorg/bson/BsonValue;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: ldc "clientSession"
aload 1
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
aload 1
aload 2
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.executeDelete:(Lcom/mongodb/client/ClientSession;Lorg/bson/BsonValue;)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 3 1 clientSession Lcom/mongodb/client/ClientSession;
0 3 2 id Lorg/bson/BsonValue;
MethodParameters:
Name Flags
clientSession final
id final
private void executeDelete(com.mongodb.client.ClientSession, org.bson.BsonValue);
descriptor: (Lcom/mongodb/client/ClientSession;Lorg/bson/BsonValue;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnull 4
1: aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.filesCollection:Lcom/mongodb/client/MongoCollection;
aload 1
new org.bson.BsonDocument
dup
ldc "_id"
aload 2
invokespecial org.bson.BsonDocument.<init>:(Ljava/lang/String;Lorg/bson/BsonValue;)V
invokeinterface com.mongodb.client.MongoCollection.deleteOne:(Lcom/mongodb/client/ClientSession;Lorg/bson/conversions/Bson;)Lcom/mongodb/client/result/DeleteResult;
astore 3
start local 3 2: aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.chunksCollection:Lcom/mongodb/client/MongoCollection;
aload 1
new org.bson.BsonDocument
dup
ldc "files_id"
aload 2
invokespecial org.bson.BsonDocument.<init>:(Ljava/lang/String;Lorg/bson/BsonValue;)V
invokeinterface com.mongodb.client.MongoCollection.deleteMany:(Lcom/mongodb/client/ClientSession;Lorg/bson/conversions/Bson;)Lcom/mongodb/client/result/DeleteResult;
pop
3: goto 6
end local 3 4: StackMap locals:
StackMap stack:
aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.filesCollection:Lcom/mongodb/client/MongoCollection;
new org.bson.BsonDocument
dup
ldc "_id"
aload 2
invokespecial org.bson.BsonDocument.<init>:(Ljava/lang/String;Lorg/bson/BsonValue;)V
invokeinterface com.mongodb.client.MongoCollection.deleteOne:(Lorg/bson/conversions/Bson;)Lcom/mongodb/client/result/DeleteResult;
astore 3
start local 3 5: aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.chunksCollection:Lcom/mongodb/client/MongoCollection;
new org.bson.BsonDocument
dup
ldc "files_id"
aload 2
invokespecial org.bson.BsonDocument.<init>:(Ljava/lang/String;Lorg/bson/BsonValue;)V
invokeinterface com.mongodb.client.MongoCollection.deleteMany:(Lorg/bson/conversions/Bson;)Lcom/mongodb/client/result/DeleteResult;
pop
6: StackMap locals: com.mongodb.client.result.DeleteResult
StackMap stack:
aload 3
invokevirtual com.mongodb.client.result.DeleteResult.wasAcknowledged:()Z
ifeq 8
aload 3
invokevirtual com.mongodb.client.result.DeleteResult.getDeletedCount:()J
lconst_0
lcmp
ifne 8
7: new com.mongodb.MongoGridFSException
dup
ldc "No file found with the id: %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial com.mongodb.MongoGridFSException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 9 1 clientSession Lcom/mongodb/client/ClientSession;
0 9 2 id Lorg/bson/BsonValue;
2 4 3 result Lcom/mongodb/client/result/DeleteResult;
5 9 3 result Lcom/mongodb/client/result/DeleteResult;
RuntimeVisibleParameterAnnotations:
0:
com.mongodb.lang.Nullable()
1:
MethodParameters:
Name Flags
clientSession final
id final
public void rename(org.bson.types.ObjectId, java.lang.String);
descriptor: (Lorg/bson/types/ObjectId;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
new org.bson.BsonObjectId
dup
aload 1
invokespecial org.bson.BsonObjectId.<init>:(Lorg/bson/types/ObjectId;)V
aload 2
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.rename:(Lorg/bson/BsonValue;Ljava/lang/String;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 2 1 id Lorg/bson/types/ObjectId;
0 2 2 newFilename Ljava/lang/String;
MethodParameters:
Name Flags
id final
newFilename final
public void rename(org.bson.BsonValue, java.lang.String);
descriptor: (Lorg/bson/BsonValue;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aconst_null
aload 1
aload 2
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.executeRename:(Lcom/mongodb/client/ClientSession;Lorg/bson/BsonValue;Ljava/lang/String;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 2 1 id Lorg/bson/BsonValue;
0 2 2 newFilename Ljava/lang/String;
MethodParameters:
Name Flags
id final
newFilename final
public void rename(com.mongodb.client.ClientSession, org.bson.types.ObjectId, java.lang.String);
descriptor: (Lcom/mongodb/client/ClientSession;Lorg/bson/types/ObjectId;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
new org.bson.BsonObjectId
dup
aload 2
invokespecial org.bson.BsonObjectId.<init>:(Lorg/bson/types/ObjectId;)V
aload 3
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.rename:(Lcom/mongodb/client/ClientSession;Lorg/bson/BsonValue;Ljava/lang/String;)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 2 1 clientSession Lcom/mongodb/client/ClientSession;
0 2 2 id Lorg/bson/types/ObjectId;
0 2 3 newFilename Ljava/lang/String;
MethodParameters:
Name Flags
clientSession final
id final
newFilename final
public void rename(com.mongodb.client.ClientSession, org.bson.BsonValue, java.lang.String);
descriptor: (Lcom/mongodb/client/ClientSession;Lorg/bson/BsonValue;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: ldc "clientSession"
aload 1
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
aload 1
aload 2
aload 3
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.executeRename:(Lcom/mongodb/client/ClientSession;Lorg/bson/BsonValue;Ljava/lang/String;)V
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 3 1 clientSession Lcom/mongodb/client/ClientSession;
0 3 2 id Lorg/bson/BsonValue;
0 3 3 newFilename Ljava/lang/String;
MethodParameters:
Name Flags
clientSession final
id final
newFilename final
private void executeRename(com.mongodb.client.ClientSession, org.bson.BsonValue, java.lang.String);
descriptor: (Lcom/mongodb/client/ClientSession;Lorg/bson/BsonValue;Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=12, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
ifnull 5
1: aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.filesCollection:Lcom/mongodb/client/MongoCollection;
aload 1
new org.bson.BsonDocument
dup
ldc "_id"
aload 2
invokespecial org.bson.BsonDocument.<init>:(Ljava/lang/String;Lorg/bson/BsonValue;)V
2: new org.bson.BsonDocument
dup
ldc "$set"
new org.bson.BsonDocument
dup
ldc "filename"
new org.bson.BsonString
dup
aload 3
invokespecial org.bson.BsonString.<init>:(Ljava/lang/String;)V
invokespecial org.bson.BsonDocument.<init>:(Ljava/lang/String;Lorg/bson/BsonValue;)V
invokespecial org.bson.BsonDocument.<init>:(Ljava/lang/String;Lorg/bson/BsonValue;)V
3: invokeinterface com.mongodb.client.MongoCollection.updateOne:(Lcom/mongodb/client/ClientSession;Lorg/bson/conversions/Bson;Lorg/bson/conversions/Bson;)Lcom/mongodb/client/result/UpdateResult;
astore 4
start local 4 4: goto 8
end local 4 5: StackMap locals:
StackMap stack:
aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.filesCollection:Lcom/mongodb/client/MongoCollection;
new org.bson.BsonDocument
dup
ldc "_id"
aload 2
invokespecial org.bson.BsonDocument.<init>:(Ljava/lang/String;Lorg/bson/BsonValue;)V
6: new org.bson.BsonDocument
dup
ldc "$set"
new org.bson.BsonDocument
dup
ldc "filename"
new org.bson.BsonString
dup
aload 3
invokespecial org.bson.BsonString.<init>:(Ljava/lang/String;)V
invokespecial org.bson.BsonDocument.<init>:(Ljava/lang/String;Lorg/bson/BsonValue;)V
invokespecial org.bson.BsonDocument.<init>:(Ljava/lang/String;Lorg/bson/BsonValue;)V
7: invokeinterface com.mongodb.client.MongoCollection.updateOne:(Lorg/bson/conversions/Bson;Lorg/bson/conversions/Bson;)Lcom/mongodb/client/result/UpdateResult;
astore 4
start local 4 8: StackMap locals: com.mongodb.client.result.UpdateResult
StackMap stack:
aload 4
invokevirtual com.mongodb.client.result.UpdateResult.wasAcknowledged:()Z
ifeq 10
aload 4
invokevirtual com.mongodb.client.result.UpdateResult.getMatchedCount:()J
lconst_0
lcmp
ifne 10
9: new com.mongodb.MongoGridFSException
dup
ldc "No file found with the id: %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial com.mongodb.MongoGridFSException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 11 1 clientSession Lcom/mongodb/client/ClientSession;
0 11 2 id Lorg/bson/BsonValue;
0 11 3 newFilename Ljava/lang/String;
4 5 4 updateResult Lcom/mongodb/client/result/UpdateResult;
8 11 4 updateResult Lcom/mongodb/client/result/UpdateResult;
RuntimeVisibleParameterAnnotations:
0:
com.mongodb.lang.Nullable()
1:
2:
MethodParameters:
Name Flags
clientSession final
id final
newFilename final
public void drop();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.filesCollection:Lcom/mongodb/client/MongoCollection;
invokeinterface com.mongodb.client.MongoCollection.drop:()V
1: aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.chunksCollection:Lcom/mongodb/client/MongoCollection;
invokeinterface com.mongodb.client.MongoCollection.drop:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
public void drop(com.mongodb.client.ClientSession);
descriptor: (Lcom/mongodb/client/ClientSession;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: ldc "clientSession"
aload 1
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.filesCollection:Lcom/mongodb/client/MongoCollection;
aload 1
invokeinterface com.mongodb.client.MongoCollection.drop:(Lcom/mongodb/client/ClientSession;)V
2: aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.chunksCollection:Lcom/mongodb/client/MongoCollection;
aload 1
invokeinterface com.mongodb.client.MongoCollection.drop:(Lcom/mongodb/client/ClientSession;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 4 1 clientSession Lcom/mongodb/client/ClientSession;
MethodParameters:
Name Flags
clientSession final
public com.mongodb.client.gridfs.GridFSDownloadStream openDownloadStreamByName(java.lang.String);
descriptor: (Ljava/lang/String;)Lcom/mongodb/client/gridfs/GridFSDownloadStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
new com.mongodb.client.gridfs.model.GridFSDownloadByNameOptions
dup
invokespecial com.mongodb.client.gridfs.model.GridFSDownloadByNameOptions.<init>:()V
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.openDownloadStreamByName:(Ljava/lang/String;Lcom/mongodb/client/gridfs/model/GridFSDownloadByNameOptions;)Lcom/mongodb/client/gridfs/GridFSDownloadStream;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 1 1 filename Ljava/lang/String;
MethodParameters:
Name Flags
filename final
public com.mongodb.client.gridfs.GridFSDownloadStream openDownloadStreamByName(java.lang.String, com.mongodb.client.gridfs.model.GridFSDownloadByNameOptions);
descriptor: (Ljava/lang/String;Lcom/mongodb/client/gridfs/model/GridFSDownloadByNameOptions;)Lcom/mongodb/client/gridfs/GridFSDownloadStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
new com.mongodb.client.gridfs.model.GridFSDownloadOptions
dup
invokespecial com.mongodb.client.gridfs.model.GridFSDownloadOptions.<init>:()V
aload 2
invokevirtual com.mongodb.client.gridfs.model.GridFSDownloadByNameOptions.getRevision:()I
invokevirtual com.mongodb.client.gridfs.model.GridFSDownloadOptions.revision:(I)Lcom/mongodb/client/gridfs/model/GridFSDownloadOptions;
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.openDownloadStream:(Ljava/lang/String;Lcom/mongodb/client/gridfs/model/GridFSDownloadOptions;)Lcom/mongodb/client/gridfs/GridFSDownloadStream;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 1 1 filename Ljava/lang/String;
0 1 2 options Lcom/mongodb/client/gridfs/model/GridFSDownloadByNameOptions;
MethodParameters:
Name Flags
filename final
options final
public void downloadToStreamByName(java.lang.String, java.io.OutputStream);
descriptor: (Ljava/lang/String;Ljava/io/OutputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
new com.mongodb.client.gridfs.model.GridFSDownloadByNameOptions
dup
invokespecial com.mongodb.client.gridfs.model.GridFSDownloadByNameOptions.<init>:()V
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.downloadToStreamByName:(Ljava/lang/String;Ljava/io/OutputStream;Lcom/mongodb/client/gridfs/model/GridFSDownloadByNameOptions;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 2 1 filename Ljava/lang/String;
0 2 2 destination Ljava/io/OutputStream;
MethodParameters:
Name Flags
filename final
destination final
public void downloadToStreamByName(java.lang.String, java.io.OutputStream, com.mongodb.client.gridfs.model.GridFSDownloadByNameOptions);
descriptor: (Ljava/lang/String;Ljava/io/OutputStream;Lcom/mongodb/client/gridfs/model/GridFSDownloadByNameOptions;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
new com.mongodb.client.gridfs.model.GridFSDownloadOptions
dup
invokespecial com.mongodb.client.gridfs.model.GridFSDownloadOptions.<init>:()V
aload 3
invokevirtual com.mongodb.client.gridfs.model.GridFSDownloadByNameOptions.getRevision:()I
invokevirtual com.mongodb.client.gridfs.model.GridFSDownloadOptions.revision:(I)Lcom/mongodb/client/gridfs/model/GridFSDownloadOptions;
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.downloadToStream:(Ljava/lang/String;Ljava/io/OutputStream;Lcom/mongodb/client/gridfs/model/GridFSDownloadOptions;)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 2 1 filename Ljava/lang/String;
0 2 2 destination Ljava/io/OutputStream;
0 2 3 options Lcom/mongodb/client/gridfs/model/GridFSDownloadByNameOptions;
MethodParameters:
Name Flags
filename final
destination final
options final
private static com.mongodb.client.MongoCollection<com.mongodb.client.gridfs.model.GridFSFile> getFilesCollection(com.mongodb.client.MongoDatabase, java.lang.String);
descriptor: (Lcom/mongodb/client/MongoDatabase;Ljava/lang/String;)Lcom/mongodb/client/MongoCollection;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".files"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
ldc Lcom/mongodb/client/gridfs/model/GridFSFile;
invokeinterface com.mongodb.client.MongoDatabase.getCollection:(Ljava/lang/String;Ljava/lang/Class;)Lcom/mongodb/client/MongoCollection;
iconst_2
anewarray org.bson.codecs.configuration.CodecRegistry
dup
iconst_0
1: aload 0
invokeinterface com.mongodb.client.MongoDatabase.getCodecRegistry:()Lorg/bson/codecs/configuration/CodecRegistry;
aastore
dup
iconst_1
invokestatic com.mongodb.MongoClientSettings.getDefaultCodecRegistry:()Lorg/bson/codecs/configuration/CodecRegistry;
aastore
invokestatic org.bson.codecs.configuration.CodecRegistries.fromRegistries:([Lorg/bson/codecs/configuration/CodecRegistry;)Lorg/bson/codecs/configuration/CodecRegistry;
2: invokeinterface com.mongodb.client.MongoCollection.withCodecRegistry:(Lorg/bson/codecs/configuration/CodecRegistry;)Lcom/mongodb/client/MongoCollection;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 database Lcom/mongodb/client/MongoDatabase;
0 3 1 bucketName Ljava/lang/String;
Signature: (Lcom/mongodb/client/MongoDatabase;Ljava/lang/String;)Lcom/mongodb/client/MongoCollection<Lcom/mongodb/client/gridfs/model/GridFSFile;>;
MethodParameters:
Name Flags
database final
bucketName final
private static com.mongodb.client.MongoCollection<org.bson.Document> getChunksCollection(com.mongodb.client.MongoDatabase, java.lang.String);
descriptor: (Lcom/mongodb/client/MongoDatabase;Ljava/lang/String;)Lcom/mongodb/client/MongoCollection;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".chunks"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface com.mongodb.client.MongoDatabase.getCollection:(Ljava/lang/String;)Lcom/mongodb/client/MongoCollection;
invokestatic com.mongodb.MongoClientSettings.getDefaultCodecRegistry:()Lorg/bson/codecs/configuration/CodecRegistry;
invokeinterface com.mongodb.client.MongoCollection.withCodecRegistry:(Lorg/bson/codecs/configuration/CodecRegistry;)Lcom/mongodb/client/MongoCollection;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 database Lcom/mongodb/client/MongoDatabase;
0 1 1 bucketName Ljava/lang/String;
Signature: (Lcom/mongodb/client/MongoDatabase;Ljava/lang/String;)Lcom/mongodb/client/MongoCollection<Lorg/bson/Document;>;
MethodParameters:
Name Flags
database final
bucketName final
private void checkCreateIndex(com.mongodb.client.ClientSession);
descriptor: (Lcom/mongodb/client/ClientSession;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.checkedIndexes:Z
ifne 9
1: aload 0
aload 1
aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.filesCollection:Lcom/mongodb/client/MongoCollection;
ldc Lorg/bson/Document;
invokeinterface com.mongodb.client.MongoCollection.withDocumentClass:(Ljava/lang/Class;)Lcom/mongodb/client/MongoCollection;
invokestatic com.mongodb.ReadPreference.primary:()Lcom/mongodb/ReadPreference;
invokeinterface com.mongodb.client.MongoCollection.withReadPreference:(Lcom/mongodb/ReadPreference;)Lcom/mongodb/client/MongoCollection;
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.collectionIsEmpty:(Lcom/mongodb/client/ClientSession;Lcom/mongodb/client/MongoCollection;)Z
ifeq 8
2: new org.bson.Document
dup
ldc "filename"
iconst_1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokespecial org.bson.Document.<init>:(Ljava/lang/String;Ljava/lang/Object;)V
ldc "uploadDate"
iconst_1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual org.bson.Document.append:(Ljava/lang/String;Ljava/lang/Object;)Lorg/bson/Document;
astore 2
start local 2 3: aload 0
aload 1
aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.filesCollection:Lcom/mongodb/client/MongoCollection;
invokestatic com.mongodb.ReadPreference.primary:()Lcom/mongodb/ReadPreference;
invokeinterface com.mongodb.client.MongoCollection.withReadPreference:(Lcom/mongodb/ReadPreference;)Lcom/mongodb/client/MongoCollection;
aload 2
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.hasIndex:(Lcom/mongodb/client/ClientSession;Lcom/mongodb/client/MongoCollection;Lorg/bson/Document;)Z
ifne 5
4: aload 0
aload 1
aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.filesCollection:Lcom/mongodb/client/MongoCollection;
aload 2
new com.mongodb.client.model.IndexOptions
dup
invokespecial com.mongodb.client.model.IndexOptions.<init>:()V
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.createIndex:(Lcom/mongodb/client/ClientSession;Lcom/mongodb/client/MongoCollection;Lorg/bson/Document;Lcom/mongodb/client/model/IndexOptions;)V
5: StackMap locals: org.bson.Document
StackMap stack:
new org.bson.Document
dup
ldc "files_id"
iconst_1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokespecial org.bson.Document.<init>:(Ljava/lang/String;Ljava/lang/Object;)V
ldc "n"
iconst_1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual org.bson.Document.append:(Ljava/lang/String;Ljava/lang/Object;)Lorg/bson/Document;
astore 3
start local 3 6: aload 0
aload 1
aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.chunksCollection:Lcom/mongodb/client/MongoCollection;
invokestatic com.mongodb.ReadPreference.primary:()Lcom/mongodb/ReadPreference;
invokeinterface com.mongodb.client.MongoCollection.withReadPreference:(Lcom/mongodb/ReadPreference;)Lcom/mongodb/client/MongoCollection;
aload 3
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.hasIndex:(Lcom/mongodb/client/ClientSession;Lcom/mongodb/client/MongoCollection;Lorg/bson/Document;)Z
ifne 8
7: aload 0
aload 1
aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.chunksCollection:Lcom/mongodb/client/MongoCollection;
aload 3
new com.mongodb.client.model.IndexOptions
dup
invokespecial com.mongodb.client.model.IndexOptions.<init>:()V
iconst_1
invokevirtual com.mongodb.client.model.IndexOptions.unique:(Z)Lcom/mongodb/client/model/IndexOptions;
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.createIndex:(Lcom/mongodb/client/ClientSession;Lcom/mongodb/client/MongoCollection;Lorg/bson/Document;Lcom/mongodb/client/model/IndexOptions;)V
end local 3 end local 2 8: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield com.mongodb.client.gridfs.GridFSBucketImpl.checkedIndexes:Z
9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 10 1 clientSession Lcom/mongodb/client/ClientSession;
3 8 2 filesIndex Lorg/bson/Document;
6 8 3 chunksIndex Lorg/bson/Document;
RuntimeVisibleParameterAnnotations:
0:
com.mongodb.lang.Nullable()
MethodParameters:
Name Flags
clientSession final
private <T> boolean collectionIsEmpty(com.mongodb.client.ClientSession, com.mongodb.client.MongoCollection<T>);
descriptor: (Lcom/mongodb/client/ClientSession;Lcom/mongodb/client/MongoCollection;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnull 3
1: aload 2
aload 1
invokeinterface com.mongodb.client.MongoCollection.find:(Lcom/mongodb/client/ClientSession;)Lcom/mongodb/client/FindIterable;
new org.bson.Document
dup
ldc "_id"
iconst_1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokespecial org.bson.Document.<init>:(Ljava/lang/String;Ljava/lang/Object;)V
invokeinterface com.mongodb.client.FindIterable.projection:(Lorg/bson/conversions/Bson;)Lcom/mongodb/client/FindIterable;
invokeinterface com.mongodb.client.FindIterable.first:()Ljava/lang/Object;
ifnonnull 2
iconst_1
ireturn
StackMap locals:
StackMap stack:
2: iconst_0
ireturn
3: StackMap locals:
StackMap stack:
aload 2
invokeinterface com.mongodb.client.MongoCollection.find:()Lcom/mongodb/client/FindIterable;
new org.bson.Document
dup
ldc "_id"
iconst_1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokespecial org.bson.Document.<init>:(Ljava/lang/String;Ljava/lang/Object;)V
invokeinterface com.mongodb.client.FindIterable.projection:(Lorg/bson/conversions/Bson;)Lcom/mongodb/client/FindIterable;
invokeinterface com.mongodb.client.FindIterable.first:()Ljava/lang/Object;
ifnonnull 4
iconst_1
ireturn
StackMap locals:
StackMap stack:
4: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 5 1 clientSession Lcom/mongodb/client/ClientSession;
0 5 2 collection Lcom/mongodb/client/MongoCollection<TT;>;
Signature: <T:Ljava/lang/Object;>(Lcom/mongodb/client/ClientSession;Lcom/mongodb/client/MongoCollection<TT;>;)Z
RuntimeVisibleParameterAnnotations:
0:
com.mongodb.lang.Nullable()
1:
MethodParameters:
Name Flags
clientSession final
collection final
private <T> boolean hasIndex(com.mongodb.client.ClientSession, com.mongodb.client.MongoCollection<T>, org.bson.Document);
descriptor: (Lcom/mongodb/client/ClientSession;Lcom/mongodb/client/MongoCollection;Lorg/bson/Document;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=12, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iconst_0
istore 4
start local 4 1: aload 1
ifnull 4
2: aload 2
aload 1
invokeinterface com.mongodb.client.MongoCollection.listIndexes:(Lcom/mongodb/client/ClientSession;)Lcom/mongodb/client/ListIndexesIterable;
astore 5
start local 5 3: goto 5
end local 5 4: StackMap locals: int
StackMap stack:
aload 2
invokeinterface com.mongodb.client.MongoCollection.listIndexes:()Lcom/mongodb/client/ListIndexesIterable;
astore 5
start local 5 5: StackMap locals: com.mongodb.client.ListIndexesIterable
StackMap stack:
aload 5
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
invokeinterface com.mongodb.client.ListIndexesIterable.into:(Ljava/util/Collection;)Ljava/util/Collection;
checkcast java.util.ArrayList
astore 6
start local 6 6: aload 6
invokevirtual java.util.ArrayList.iterator:()Ljava/util/Iterator;
astore 8
goto 17
StackMap locals: com.mongodb.client.gridfs.GridFSBucketImpl com.mongodb.client.ClientSession com.mongodb.client.MongoCollection org.bson.Document int com.mongodb.client.ListIndexesIterable java.util.ArrayList top java.util.Iterator
StackMap stack:
7: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.bson.Document
astore 7
start local 7 8: aload 7
ldc "key"
new org.bson.Document
dup
invokespecial org.bson.Document.<init>:()V
invokevirtual org.bson.Document.get:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.bson.Document
astore 9
start local 9 9: aload 9
invokevirtual org.bson.Document.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 11
goto 13
StackMap locals: com.mongodb.client.gridfs.GridFSBucketImpl com.mongodb.client.ClientSession com.mongodb.client.MongoCollection org.bson.Document int com.mongodb.client.ListIndexesIterable java.util.ArrayList org.bson.Document java.util.Iterator org.bson.Document top java.util.Iterator
StackMap stack:
10: aload 11
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 10
start local 10 11: aload 10
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
instanceof java.lang.Number
ifeq 13
12: aload 10
aload 10
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast java.lang.Number
invokevirtual java.lang.Number.intValue:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map$Entry.setValue:(Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 10 13: StackMap locals:
StackMap stack:
aload 11
invokeinterface java.util.Iterator.hasNext:()Z
ifne 10
14: aload 9
aload 3
invokevirtual org.bson.Document.equals:(Ljava/lang/Object;)Z
ifeq 17
15: iconst_1
istore 4
16: goto 18
end local 9 end local 7 17: StackMap locals: com.mongodb.client.gridfs.GridFSBucketImpl com.mongodb.client.ClientSession com.mongodb.client.MongoCollection org.bson.Document int com.mongodb.client.ListIndexesIterable java.util.ArrayList top java.util.Iterator
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 7
18: StackMap locals: com.mongodb.client.gridfs.GridFSBucketImpl com.mongodb.client.ClientSession com.mongodb.client.MongoCollection org.bson.Document int com.mongodb.client.ListIndexesIterable java.util.ArrayList
StackMap stack:
iload 4
ireturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 19 1 clientSession Lcom/mongodb/client/ClientSession;
0 19 2 collection Lcom/mongodb/client/MongoCollection<TT;>;
0 19 3 index Lorg/bson/Document;
1 19 4 hasIndex Z
3 4 5 listIndexesIterable Lcom/mongodb/client/ListIndexesIterable<Lorg/bson/Document;>;
5 19 5 listIndexesIterable Lcom/mongodb/client/ListIndexesIterable<Lorg/bson/Document;>;
6 19 6 indexes Ljava/util/ArrayList<Lorg/bson/Document;>;
8 17 7 result Lorg/bson/Document;
9 17 9 indexDoc Lorg/bson/Document;
11 13 10 entry Ljava/util/Map$Entry<Ljava/lang/String;Ljava/lang/Object;>;
Signature: <T:Ljava/lang/Object;>(Lcom/mongodb/client/ClientSession;Lcom/mongodb/client/MongoCollection<TT;>;Lorg/bson/Document;)Z
RuntimeVisibleParameterAnnotations:
0:
com.mongodb.lang.Nullable()
1:
2:
MethodParameters:
Name Flags
clientSession final
collection final
index final
private <T> void createIndex(com.mongodb.client.ClientSession, com.mongodb.client.MongoCollection<T>, org.bson.Document, com.mongodb.client.model.IndexOptions);
descriptor: (Lcom/mongodb/client/ClientSession;Lcom/mongodb/client/MongoCollection;Lorg/bson/Document;Lcom/mongodb/client/model/IndexOptions;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 1
ifnull 3
1: aload 2
aload 1
aload 3
aload 4
invokeinterface com.mongodb.client.MongoCollection.createIndex:(Lcom/mongodb/client/ClientSession;Lorg/bson/conversions/Bson;Lcom/mongodb/client/model/IndexOptions;)Ljava/lang/String;
pop
2: goto 4
3: StackMap locals:
StackMap stack:
aload 2
aload 3
aload 4
invokeinterface com.mongodb.client.MongoCollection.createIndex:(Lorg/bson/conversions/Bson;Lcom/mongodb/client/model/IndexOptions;)Ljava/lang/String;
pop
4: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 5 1 clientSession Lcom/mongodb/client/ClientSession;
0 5 2 collection Lcom/mongodb/client/MongoCollection<TT;>;
0 5 3 index Lorg/bson/Document;
0 5 4 indexOptions Lcom/mongodb/client/model/IndexOptions;
Signature: <T:Ljava/lang/Object;>(Lcom/mongodb/client/ClientSession;Lcom/mongodb/client/MongoCollection<TT;>;Lorg/bson/Document;Lcom/mongodb/client/model/IndexOptions;)V
RuntimeVisibleParameterAnnotations:
0:
com.mongodb.lang.Nullable()
1:
2:
3:
MethodParameters:
Name Flags
clientSession final
collection final
index final
indexOptions final
private com.mongodb.client.gridfs.model.GridFSFile getFileByName(com.mongodb.client.ClientSession, java.lang.String, com.mongodb.client.gridfs.model.GridFSDownloadOptions);
descriptor: (Lcom/mongodb/client/ClientSession;Ljava/lang/String;Lcom/mongodb/client/gridfs/model/GridFSDownloadOptions;)Lcom/mongodb/client/gridfs/model/GridFSFile;
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
invokevirtual com.mongodb.client.gridfs.model.GridFSDownloadOptions.getRevision:()I
istore 4
start local 4 1: iload 4
iflt 5
2: iload 4
istore 5
start local 5 3: iconst_1
istore 6
start local 6 4: goto 7
end local 6 end local 5 5: StackMap locals: int
StackMap stack:
iload 4
ineg
iconst_1
isub
istore 5
start local 5 6: iconst_m1
istore 6
start local 6 7: StackMap locals: int int
StackMap stack:
aload 0
aload 1
new org.bson.Document
dup
ldc "filename"
aload 2
invokespecial org.bson.Document.<init>:(Ljava/lang/String;Ljava/lang/Object;)V
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.createGridFSFindIterable:(Lcom/mongodb/client/ClientSession;Lorg/bson/conversions/Bson;)Lcom/mongodb/client/gridfs/GridFSFindIterable;
iload 5
invokeinterface com.mongodb.client.gridfs.GridFSFindIterable.skip:(I)Lcom/mongodb/client/gridfs/GridFSFindIterable;
8: new org.bson.Document
dup
ldc "uploadDate"
iload 6
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokespecial org.bson.Document.<init>:(Ljava/lang/String;Ljava/lang/Object;)V
invokeinterface com.mongodb.client.gridfs.GridFSFindIterable.sort:(Lorg/bson/conversions/Bson;)Lcom/mongodb/client/gridfs/GridFSFindIterable;
invokeinterface com.mongodb.client.gridfs.GridFSFindIterable.first:()Ljava/lang/Object;
checkcast com.mongodb.client.gridfs.model.GridFSFile
9: astore 7
start local 7 10: aload 7
ifnonnull 12
11: new com.mongodb.MongoGridFSException
dup
ldc "No file found with the filename: %s and revision: %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
dup
iconst_1
iload 4
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial com.mongodb.MongoGridFSException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals: com.mongodb.client.gridfs.model.GridFSFile
StackMap stack:
aload 7
areturn
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 13 1 clientSession Lcom/mongodb/client/ClientSession;
0 13 2 filename Ljava/lang/String;
0 13 3 options Lcom/mongodb/client/gridfs/model/GridFSDownloadOptions;
1 13 4 revision I
3 5 5 skip I
6 13 5 skip I
4 5 6 sort I
7 13 6 sort I
10 13 7 fileInfo Lcom/mongodb/client/gridfs/model/GridFSFile;
RuntimeVisibleParameterAnnotations:
0:
com.mongodb.lang.Nullable()
1:
2:
MethodParameters:
Name Flags
clientSession final
filename final
options final
private com.mongodb.client.gridfs.model.GridFSFile getFileInfoById(com.mongodb.client.ClientSession, org.bson.BsonValue);
descriptor: (Lcom/mongodb/client/ClientSession;Lorg/bson/BsonValue;)Lcom/mongodb/client/gridfs/model/GridFSFile;
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=4, args_size=3
start local 0 start local 1 start local 2 0: ldc "id"
aload 2
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
aload 1
new org.bson.Document
dup
ldc "_id"
aload 2
invokespecial org.bson.Document.<init>:(Ljava/lang/String;Ljava/lang/Object;)V
invokevirtual com.mongodb.client.gridfs.GridFSBucketImpl.createFindIterable:(Lcom/mongodb/client/ClientSession;Lorg/bson/conversions/Bson;)Lcom/mongodb/client/FindIterable;
invokeinterface com.mongodb.client.FindIterable.first:()Ljava/lang/Object;
checkcast com.mongodb.client.gridfs.model.GridFSFile
astore 3
start local 3 2: aload 3
ifnonnull 4
3: new com.mongodb.MongoGridFSException
dup
ldc "No file found with the id: %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial com.mongodb.MongoGridFSException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: com.mongodb.client.gridfs.model.GridFSFile
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 5 1 clientSession Lcom/mongodb/client/ClientSession;
0 5 2 id Lorg/bson/BsonValue;
2 5 3 fileInfo Lcom/mongodb/client/gridfs/model/GridFSFile;
RuntimeVisibleParameterAnnotations:
0:
com.mongodb.lang.Nullable()
1:
MethodParameters:
Name Flags
clientSession final
id final
private com.mongodb.client.FindIterable<com.mongodb.client.gridfs.model.GridFSFile> createFindIterable(com.mongodb.client.ClientSession, org.bson.conversions.Bson);
descriptor: (Lcom/mongodb/client/ClientSession;Lorg/bson/conversions/Bson;)Lcom/mongodb/client/FindIterable;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnull 3
1: aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.filesCollection:Lcom/mongodb/client/MongoCollection;
aload 1
invokeinterface com.mongodb.client.MongoCollection.find:(Lcom/mongodb/client/ClientSession;)Lcom/mongodb/client/FindIterable;
astore 3
start local 3 2: goto 4
end local 3 3: StackMap locals:
StackMap stack:
aload 0
getfield com.mongodb.client.gridfs.GridFSBucketImpl.filesCollection:Lcom/mongodb/client/MongoCollection;
invokeinterface com.mongodb.client.MongoCollection.find:()Lcom/mongodb/client/FindIterable;
astore 3
start local 3 4: StackMap locals: com.mongodb.client.FindIterable
StackMap stack:
aload 2
ifnull 6
5: aload 3
aload 2
invokeinterface com.mongodb.client.FindIterable.filter:(Lorg/bson/conversions/Bson;)Lcom/mongodb/client/FindIterable;
astore 3
6: StackMap locals:
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 7 1 clientSession Lcom/mongodb/client/ClientSession;
0 7 2 filter Lorg/bson/conversions/Bson;
2 3 3 findIterable Lcom/mongodb/client/FindIterable<Lcom/mongodb/client/gridfs/model/GridFSFile;>;
4 7 3 findIterable Lcom/mongodb/client/FindIterable<Lcom/mongodb/client/gridfs/model/GridFSFile;>;
Signature: (Lcom/mongodb/client/ClientSession;Lorg/bson/conversions/Bson;)Lcom/mongodb/client/FindIterable<Lcom/mongodb/client/gridfs/model/GridFSFile;>;
RuntimeVisibleParameterAnnotations:
0:
com.mongodb.lang.Nullable()
1:
com.mongodb.lang.Nullable()
MethodParameters:
Name Flags
clientSession final
filter final
private void downloadToStream(com.mongodb.client.gridfs.GridFSDownloadStream, java.io.OutputStream);
descriptor: (Lcom/mongodb/client/gridfs/GridFSDownloadStream;Ljava/io/OutputStream;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual com.mongodb.client.gridfs.GridFSDownloadStream.getGridFSFile:()Lcom/mongodb/client/gridfs/model/GridFSFile;
invokevirtual com.mongodb.client.gridfs.model.GridFSFile.getChunkSize:()I
newarray 8
astore 3
start local 3 1: aconst_null
astore 5
start local 5 2: goto 4
start local 4 3: StackMap locals: byte[] int com.mongodb.MongoGridFSException
StackMap stack:
aload 2
aload 3
iconst_0
iload 4
invokevirtual java.io.OutputStream.write:([BII)V
end local 4 4: StackMap locals: com.mongodb.client.gridfs.GridFSBucketImpl com.mongodb.client.gridfs.GridFSDownloadStream java.io.OutputStream byte[] top com.mongodb.MongoGridFSException
StackMap stack:
aload 1
aload 3
invokevirtual com.mongodb.client.gridfs.GridFSDownloadStream.read:([B)I
dup
istore 4
start local 4 5: iconst_m1
if_icmpne 3
end local 4 6: goto 28
StackMap locals:
StackMap stack: java.io.IOException
7: astore 6
start local 6 8: new com.mongodb.MongoGridFSException
dup
ldc "IOException when reading from the OutputStream"
aload 6
invokespecial com.mongodb.MongoGridFSException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
astore 5
end local 6 9: aload 1
invokevirtual com.mongodb.client.gridfs.GridFSDownloadStream.close:()V
10: goto 12
StackMap locals:
StackMap stack: java.lang.Exception
11: pop
12: StackMap locals:
StackMap stack:
aload 5
ifnull 33
13: aload 5
athrow
14: StackMap locals:
StackMap stack: java.lang.Exception
astore 6
start local 6 15: new com.mongodb.MongoGridFSException
dup
ldc "Unexpected Exception when reading GridFS and writing to the Stream"
aload 6
invokespecial com.mongodb.MongoGridFSException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
astore 5
end local 6 16: aload 1
invokevirtual com.mongodb.client.gridfs.GridFSDownloadStream.close:()V
17: goto 19
StackMap locals:
StackMap stack: java.lang.Exception
18: pop
19: StackMap locals:
StackMap stack:
aload 5
ifnull 33
20: aload 5
athrow
21: StackMap locals:
StackMap stack: java.lang.Throwable
astore 7
22: aload 1
invokevirtual com.mongodb.client.gridfs.GridFSDownloadStream.close:()V
23: goto 25
StackMap locals: com.mongodb.client.gridfs.GridFSBucketImpl com.mongodb.client.gridfs.GridFSDownloadStream java.io.OutputStream byte[] top com.mongodb.MongoGridFSException top java.lang.Throwable
StackMap stack: java.lang.Exception
24: pop
25: StackMap locals:
StackMap stack:
aload 5
ifnull 27
26: aload 5
athrow
27: StackMap locals:
StackMap stack:
aload 7
athrow
28: StackMap locals: com.mongodb.client.gridfs.GridFSBucketImpl com.mongodb.client.gridfs.GridFSDownloadStream java.io.OutputStream byte[] top com.mongodb.MongoGridFSException
StackMap stack:
aload 1
invokevirtual com.mongodb.client.gridfs.GridFSDownloadStream.close:()V
29: goto 31
StackMap locals:
StackMap stack: java.lang.Exception
30: pop
31: StackMap locals:
StackMap stack:
aload 5
ifnull 33
32: aload 5
athrow
33: StackMap locals:
StackMap stack:
return
end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 34 0 this Lcom/mongodb/client/gridfs/GridFSBucketImpl;
0 34 1 downloadStream Lcom/mongodb/client/gridfs/GridFSDownloadStream;
0 34 2 destination Ljava/io/OutputStream;
1 34 3 buffer [B
3 4 4 len I
5 6 4 len I
2 34 5 savedThrowable Lcom/mongodb/MongoGridFSException;
8 9 6 e Ljava/io/IOException;
15 16 6 e Ljava/lang/Exception;
Exception table:
from to target type
2 6 7 Class java.io.IOException
9 10 11 Class java.lang.Exception
2 6 14 Class java.lang.Exception
16 17 18 Class java.lang.Exception
2 9 21 any
14 16 21 any
22 23 24 Class java.lang.Exception
28 29 30 Class java.lang.Exception
MethodParameters:
Name Flags
downloadStream final
destination final
}
SourceFile: "GridFSBucketImpl.java"
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map