public class org.bson.BsonBinaryWriter extends org.bson.AbstractBsonWriter
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bson.BsonBinaryWriter
super_class: org.bson.AbstractBsonWriter
{
private final org.bson.BsonBinaryWriterSettings binaryWriterSettings;
descriptor: Lorg/bson/BsonBinaryWriterSettings;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.bson.io.BsonOutput bsonOutput;
descriptor: Lorg/bson/io/BsonOutput;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Stack<java.lang.Integer> maxDocumentSizeStack;
descriptor: Ljava/util/Stack;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Stack<Ljava/lang/Integer;>;
private org.bson.BsonBinaryWriter$Mark mark;
descriptor: Lorg/bson/BsonBinaryWriter$Mark;
flags: (0x0002) ACC_PRIVATE
public void <init>(org.bson.io.BsonOutput, org.bson.FieldNameValidator);
descriptor: (Lorg/bson/io/BsonOutput;Lorg/bson/FieldNameValidator;)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
new org.bson.BsonWriterSettings
dup
invokespecial org.bson.BsonWriterSettings.<init>:()V
new org.bson.BsonBinaryWriterSettings
dup
invokespecial org.bson.BsonBinaryWriterSettings.<init>:()V
aload 1
aload 2
invokespecial org.bson.BsonBinaryWriter.<init>:(Lorg/bson/BsonWriterSettings;Lorg/bson/BsonBinaryWriterSettings;Lorg/bson/io/BsonOutput;Lorg/bson/FieldNameValidator;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bson/BsonBinaryWriter;
0 2 1 bsonOutput Lorg/bson/io/BsonOutput;
0 2 2 validator Lorg/bson/FieldNameValidator;
MethodParameters:
Name Flags
bsonOutput final
validator final
public void <init>(org.bson.io.BsonOutput);
descriptor: (Lorg/bson/io/BsonOutput;)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.BsonWriterSettings
dup
invokespecial org.bson.BsonWriterSettings.<init>:()V
new org.bson.BsonBinaryWriterSettings
dup
invokespecial org.bson.BsonBinaryWriterSettings.<init>:()V
aload 1
invokespecial org.bson.BsonBinaryWriter.<init>:(Lorg/bson/BsonWriterSettings;Lorg/bson/BsonBinaryWriterSettings;Lorg/bson/io/BsonOutput;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bson/BsonBinaryWriter;
0 2 1 bsonOutput Lorg/bson/io/BsonOutput;
MethodParameters:
Name Flags
bsonOutput final
public void <init>(org.bson.BsonWriterSettings, org.bson.BsonBinaryWriterSettings, org.bson.io.BsonOutput);
descriptor: (Lorg/bson/BsonWriterSettings;Lorg/bson/BsonBinaryWriterSettings;Lorg/bson/io/BsonOutput;)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 org.bson.NoOpFieldNameValidator
dup
invokespecial org.bson.NoOpFieldNameValidator.<init>:()V
invokespecial org.bson.BsonBinaryWriter.<init>:(Lorg/bson/BsonWriterSettings;Lorg/bson/BsonBinaryWriterSettings;Lorg/bson/io/BsonOutput;Lorg/bson/FieldNameValidator;)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 Lorg/bson/BsonBinaryWriter;
0 2 1 settings Lorg/bson/BsonWriterSettings;
0 2 2 binaryWriterSettings Lorg/bson/BsonBinaryWriterSettings;
0 2 3 bsonOutput Lorg/bson/io/BsonOutput;
MethodParameters:
Name Flags
settings final
binaryWriterSettings final
bsonOutput final
public void <init>(org.bson.BsonWriterSettings, org.bson.BsonBinaryWriterSettings, org.bson.io.BsonOutput, org.bson.FieldNameValidator);
descriptor: (Lorg/bson/BsonWriterSettings;Lorg/bson/BsonBinaryWriterSettings;Lorg/bson/io/BsonOutput;Lorg/bson/FieldNameValidator;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, 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 4
invokespecial org.bson.AbstractBsonWriter.<init>:(Lorg/bson/BsonWriterSettings;Lorg/bson/FieldNameValidator;)V
1: aload 0
new java.util.Stack
dup
invokespecial java.util.Stack.<init>:()V
putfield org.bson.BsonBinaryWriter.maxDocumentSizeStack:Ljava/util/Stack;
2: aload 0
aload 2
putfield org.bson.BsonBinaryWriter.binaryWriterSettings:Lorg/bson/BsonBinaryWriterSettings;
3: aload 0
aload 3
putfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
4: aload 0
getfield org.bson.BsonBinaryWriter.maxDocumentSizeStack:Ljava/util/Stack;
aload 2
invokevirtual org.bson.BsonBinaryWriterSettings.getMaxDocumentSize:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual java.util.Stack.push:(Ljava/lang/Object;)Ljava/lang/Object;
pop
5: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/bson/BsonBinaryWriter;
0 6 1 settings Lorg/bson/BsonWriterSettings;
0 6 2 binaryWriterSettings Lorg/bson/BsonBinaryWriterSettings;
0 6 3 bsonOutput Lorg/bson/io/BsonOutput;
0 6 4 validator Lorg/bson/FieldNameValidator;
MethodParameters:
Name Flags
settings final
binaryWriterSettings final
bsonOutput final
validator final
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.bson.AbstractBsonWriter.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bson/BsonBinaryWriter;
public org.bson.io.BsonOutput getBsonOutput();
descriptor: ()Lorg/bson/io/BsonOutput;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/BsonBinaryWriter;
public org.bson.BsonBinaryWriterSettings getBinaryWriterSettings();
descriptor: ()Lorg/bson/BsonBinaryWriterSettings;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bson.BsonBinaryWriter.binaryWriterSettings:Lorg/bson/BsonBinaryWriterSettings;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/BsonBinaryWriter;
public void flush();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/BsonBinaryWriter;
protected org.bson.BsonBinaryWriter$Context getContext();
descriptor: ()Lorg/bson/BsonBinaryWriter$Context;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.bson.AbstractBsonWriter.getContext:()Lorg/bson/AbstractBsonWriter$Context;
checkcast org.bson.BsonBinaryWriter$Context
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/BsonBinaryWriter;
protected void doWriteStartDocument();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=7, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.bson.BsonBinaryWriter.getState:()Lorg/bson/AbstractBsonWriter$State;
getstatic org.bson.AbstractBsonWriter$State.VALUE:Lorg/bson/AbstractBsonWriter$State;
if_acmpne 3
1: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
getstatic org.bson.BsonType.DOCUMENT:Lorg/bson/BsonType;
invokevirtual org.bson.BsonType.getValue:()I
invokeinterface org.bson.io.BsonOutput.writeByte:(I)V
2: aload 0
invokevirtual org.bson.BsonBinaryWriter.writeCurrentName:()V
3: StackMap locals:
StackMap stack:
aload 0
new org.bson.BsonBinaryWriter$Context
dup
aload 0
aload 0
invokevirtual org.bson.BsonBinaryWriter.getContext:()Lorg/bson/BsonBinaryWriter$Context;
getstatic org.bson.BsonContextType.DOCUMENT:Lorg/bson/BsonContextType;
aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
invokeinterface org.bson.io.BsonOutput.getPosition:()I
invokespecial org.bson.BsonBinaryWriter$Context.<init>:(Lorg/bson/BsonBinaryWriter;Lorg/bson/BsonBinaryWriter$Context;Lorg/bson/BsonContextType;I)V
invokevirtual org.bson.BsonBinaryWriter.setContext:(Lorg/bson/AbstractBsonWriter$Context;)V
4: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
iconst_0
invokeinterface org.bson.io.BsonOutput.writeInt32:(I)V
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/bson/BsonBinaryWriter;
protected void doWriteEndDocument();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
iconst_0
invokeinterface org.bson.io.BsonOutput.writeByte:(I)V
1: aload 0
invokevirtual org.bson.BsonBinaryWriter.backpatchSize:()V
2: aload 0
aload 0
invokevirtual org.bson.BsonBinaryWriter.getContext:()Lorg/bson/BsonBinaryWriter$Context;
invokevirtual org.bson.BsonBinaryWriter$Context.getParentContext:()Lorg/bson/BsonBinaryWriter$Context;
invokevirtual org.bson.BsonBinaryWriter.setContext:(Lorg/bson/AbstractBsonWriter$Context;)V
3: aload 0
invokevirtual org.bson.BsonBinaryWriter.getContext:()Lorg/bson/BsonBinaryWriter$Context;
ifnull 6
aload 0
invokevirtual org.bson.BsonBinaryWriter.getContext:()Lorg/bson/BsonBinaryWriter$Context;
invokevirtual org.bson.BsonBinaryWriter$Context.getContextType:()Lorg/bson/BsonContextType;
getstatic org.bson.BsonContextType.JAVASCRIPT_WITH_SCOPE:Lorg/bson/BsonContextType;
if_acmpne 6
4: aload 0
invokevirtual org.bson.BsonBinaryWriter.backpatchSize:()V
5: aload 0
aload 0
invokevirtual org.bson.BsonBinaryWriter.getContext:()Lorg/bson/BsonBinaryWriter$Context;
invokevirtual org.bson.BsonBinaryWriter$Context.getParentContext:()Lorg/bson/BsonBinaryWriter$Context;
invokevirtual org.bson.BsonBinaryWriter.setContext:(Lorg/bson/AbstractBsonWriter$Context;)V
6: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/bson/BsonBinaryWriter;
protected void doWriteStartArray();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=7, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
getstatic org.bson.BsonType.ARRAY:Lorg/bson/BsonType;
invokevirtual org.bson.BsonType.getValue:()I
invokeinterface org.bson.io.BsonOutput.writeByte:(I)V
1: aload 0
invokevirtual org.bson.BsonBinaryWriter.writeCurrentName:()V
2: aload 0
new org.bson.BsonBinaryWriter$Context
dup
aload 0
aload 0
invokevirtual org.bson.BsonBinaryWriter.getContext:()Lorg/bson/BsonBinaryWriter$Context;
getstatic org.bson.BsonContextType.ARRAY:Lorg/bson/BsonContextType;
aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
invokeinterface org.bson.io.BsonOutput.getPosition:()I
invokespecial org.bson.BsonBinaryWriter$Context.<init>:(Lorg/bson/BsonBinaryWriter;Lorg/bson/BsonBinaryWriter$Context;Lorg/bson/BsonContextType;I)V
invokevirtual org.bson.BsonBinaryWriter.setContext:(Lorg/bson/AbstractBsonWriter$Context;)V
3: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
iconst_0
invokeinterface org.bson.io.BsonOutput.writeInt32:(I)V
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bson/BsonBinaryWriter;
protected void doWriteEndArray();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
iconst_0
invokeinterface org.bson.io.BsonOutput.writeByte:(I)V
1: aload 0
invokevirtual org.bson.BsonBinaryWriter.backpatchSize:()V
2: aload 0
aload 0
invokevirtual org.bson.BsonBinaryWriter.getContext:()Lorg/bson/BsonBinaryWriter$Context;
invokevirtual org.bson.BsonBinaryWriter$Context.getParentContext:()Lorg/bson/BsonBinaryWriter$Context;
invokevirtual org.bson.BsonBinaryWriter.setContext:(Lorg/bson/AbstractBsonWriter$Context;)V
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bson/BsonBinaryWriter;
protected void doWriteBinaryData(org.bson.BsonBinary);
descriptor: (Lorg/bson/BsonBinary;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
getstatic org.bson.BsonType.BINARY:Lorg/bson/BsonType;
invokevirtual org.bson.BsonType.getValue:()I
invokeinterface org.bson.io.BsonOutput.writeByte:(I)V
1: aload 0
invokevirtual org.bson.BsonBinaryWriter.writeCurrentName:()V
2: aload 1
invokevirtual org.bson.BsonBinary.getData:()[B
arraylength
istore 2
start local 2 3: aload 1
invokevirtual org.bson.BsonBinary.getType:()B
getstatic org.bson.BsonBinarySubType.OLD_BINARY:Lorg/bson/BsonBinarySubType;
invokevirtual org.bson.BsonBinarySubType.getValue:()B
if_icmpne 5
4: iinc 2 4
5: StackMap locals: int
StackMap stack:
aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
iload 2
invokeinterface org.bson.io.BsonOutput.writeInt32:(I)V
6: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
aload 1
invokevirtual org.bson.BsonBinary.getType:()B
invokeinterface org.bson.io.BsonOutput.writeByte:(I)V
7: aload 1
invokevirtual org.bson.BsonBinary.getType:()B
getstatic org.bson.BsonBinarySubType.OLD_BINARY:Lorg/bson/BsonBinarySubType;
invokevirtual org.bson.BsonBinarySubType.getValue:()B
if_icmpne 9
8: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
iload 2
iconst_4
isub
invokeinterface org.bson.io.BsonOutput.writeInt32:(I)V
9: StackMap locals:
StackMap stack:
aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
aload 1
invokevirtual org.bson.BsonBinary.getData:()[B
invokeinterface org.bson.io.BsonOutput.writeBytes:([B)V
10: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/bson/BsonBinaryWriter;
0 11 1 value Lorg/bson/BsonBinary;
3 11 2 totalLen I
MethodParameters:
Name Flags
value final
public void doWriteBoolean(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
getstatic org.bson.BsonType.BOOLEAN:Lorg/bson/BsonType;
invokevirtual org.bson.BsonType.getValue:()I
invokeinterface org.bson.io.BsonOutput.writeByte:(I)V
1: aload 0
invokevirtual org.bson.BsonBinaryWriter.writeCurrentName:()V
2: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
iload 1
ifeq 3
iconst_1
goto 4
StackMap locals:
StackMap stack: org.bson.io.BsonOutput
3: iconst_0
StackMap locals: org.bson.BsonBinaryWriter int
StackMap stack: org.bson.io.BsonOutput int
4: invokeinterface org.bson.io.BsonOutput.writeByte:(I)V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/bson/BsonBinaryWriter;
0 6 1 value Z
MethodParameters:
Name Flags
value final
protected void doWriteDateTime(long);
descriptor: (J)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
getstatic org.bson.BsonType.DATE_TIME:Lorg/bson/BsonType;
invokevirtual org.bson.BsonType.getValue:()I
invokeinterface org.bson.io.BsonOutput.writeByte:(I)V
1: aload 0
invokevirtual org.bson.BsonBinaryWriter.writeCurrentName:()V
2: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
lload 1
invokeinterface org.bson.io.BsonOutput.writeInt64:(J)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bson/BsonBinaryWriter;
0 4 1 value J
MethodParameters:
Name Flags
value final
protected void doWriteDBPointer(org.bson.BsonDbPointer);
descriptor: (Lorg/bson/BsonDbPointer;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
getstatic org.bson.BsonType.DB_POINTER:Lorg/bson/BsonType;
invokevirtual org.bson.BsonType.getValue:()I
invokeinterface org.bson.io.BsonOutput.writeByte:(I)V
1: aload 0
invokevirtual org.bson.BsonBinaryWriter.writeCurrentName:()V
2: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
aload 1
invokevirtual org.bson.BsonDbPointer.getNamespace:()Ljava/lang/String;
invokeinterface org.bson.io.BsonOutput.writeString:(Ljava/lang/String;)V
3: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
aload 1
invokevirtual org.bson.BsonDbPointer.getId:()Lorg/bson/types/ObjectId;
invokevirtual org.bson.types.ObjectId.toByteArray:()[B
invokeinterface org.bson.io.BsonOutput.writeBytes:([B)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bson/BsonBinaryWriter;
0 5 1 value Lorg/bson/BsonDbPointer;
MethodParameters:
Name Flags
value final
protected void doWriteDouble(double);
descriptor: (D)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
getstatic org.bson.BsonType.DOUBLE:Lorg/bson/BsonType;
invokevirtual org.bson.BsonType.getValue:()I
invokeinterface org.bson.io.BsonOutput.writeByte:(I)V
1: aload 0
invokevirtual org.bson.BsonBinaryWriter.writeCurrentName:()V
2: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
dload 1
invokeinterface org.bson.io.BsonOutput.writeDouble:(D)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bson/BsonBinaryWriter;
0 4 1 value D
MethodParameters:
Name Flags
value final
protected void doWriteInt32(int);
descriptor: (I)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
getstatic org.bson.BsonType.INT32:Lorg/bson/BsonType;
invokevirtual org.bson.BsonType.getValue:()I
invokeinterface org.bson.io.BsonOutput.writeByte:(I)V
1: aload 0
invokevirtual org.bson.BsonBinaryWriter.writeCurrentName:()V
2: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
iload 1
invokeinterface org.bson.io.BsonOutput.writeInt32:(I)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bson/BsonBinaryWriter;
0 4 1 value I
MethodParameters:
Name Flags
value final
protected void doWriteInt64(long);
descriptor: (J)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
getstatic org.bson.BsonType.INT64:Lorg/bson/BsonType;
invokevirtual org.bson.BsonType.getValue:()I
invokeinterface org.bson.io.BsonOutput.writeByte:(I)V
1: aload 0
invokevirtual org.bson.BsonBinaryWriter.writeCurrentName:()V
2: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
lload 1
invokeinterface org.bson.io.BsonOutput.writeInt64:(J)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bson/BsonBinaryWriter;
0 4 1 value J
MethodParameters:
Name Flags
value final
protected void doWriteDecimal128(org.bson.types.Decimal128);
descriptor: (Lorg/bson/types/Decimal128;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
getstatic org.bson.BsonType.DECIMAL128:Lorg/bson/BsonType;
invokevirtual org.bson.BsonType.getValue:()I
invokeinterface org.bson.io.BsonOutput.writeByte:(I)V
1: aload 0
invokevirtual org.bson.BsonBinaryWriter.writeCurrentName:()V
2: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
aload 1
invokevirtual org.bson.types.Decimal128.getLow:()J
invokeinterface org.bson.io.BsonOutput.writeInt64:(J)V
3: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
aload 1
invokevirtual org.bson.types.Decimal128.getHigh:()J
invokeinterface org.bson.io.BsonOutput.writeInt64:(J)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bson/BsonBinaryWriter;
0 5 1 value Lorg/bson/types/Decimal128;
MethodParameters:
Name Flags
value final
protected void doWriteJavaScript(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
getstatic org.bson.BsonType.JAVASCRIPT:Lorg/bson/BsonType;
invokevirtual org.bson.BsonType.getValue:()I
invokeinterface org.bson.io.BsonOutput.writeByte:(I)V
1: aload 0
invokevirtual org.bson.BsonBinaryWriter.writeCurrentName:()V
2: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
aload 1
invokeinterface org.bson.io.BsonOutput.writeString:(Ljava/lang/String;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bson/BsonBinaryWriter;
0 4 1 value Ljava/lang/String;
MethodParameters:
Name Flags
value final
protected void doWriteJavaScriptWithScope(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=7, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
getstatic org.bson.BsonType.JAVASCRIPT_WITH_SCOPE:Lorg/bson/BsonType;
invokevirtual org.bson.BsonType.getValue:()I
invokeinterface org.bson.io.BsonOutput.writeByte:(I)V
1: aload 0
invokevirtual org.bson.BsonBinaryWriter.writeCurrentName:()V
2: aload 0
new org.bson.BsonBinaryWriter$Context
dup
aload 0
aload 0
invokevirtual org.bson.BsonBinaryWriter.getContext:()Lorg/bson/BsonBinaryWriter$Context;
getstatic org.bson.BsonContextType.JAVASCRIPT_WITH_SCOPE:Lorg/bson/BsonContextType;
aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
invokeinterface org.bson.io.BsonOutput.getPosition:()I
invokespecial org.bson.BsonBinaryWriter$Context.<init>:(Lorg/bson/BsonBinaryWriter;Lorg/bson/BsonBinaryWriter$Context;Lorg/bson/BsonContextType;I)V
invokevirtual org.bson.BsonBinaryWriter.setContext:(Lorg/bson/AbstractBsonWriter$Context;)V
3: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
iconst_0
invokeinterface org.bson.io.BsonOutput.writeInt32:(I)V
4: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
aload 1
invokeinterface org.bson.io.BsonOutput.writeString:(Ljava/lang/String;)V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/bson/BsonBinaryWriter;
0 6 1 value Ljava/lang/String;
MethodParameters:
Name Flags
value final
protected void doWriteMaxKey();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
getstatic org.bson.BsonType.MAX_KEY:Lorg/bson/BsonType;
invokevirtual org.bson.BsonType.getValue:()I
invokeinterface org.bson.io.BsonOutput.writeByte:(I)V
1: aload 0
invokevirtual org.bson.BsonBinaryWriter.writeCurrentName:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bson/BsonBinaryWriter;
protected void doWriteMinKey();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
getstatic org.bson.BsonType.MIN_KEY:Lorg/bson/BsonType;
invokevirtual org.bson.BsonType.getValue:()I
invokeinterface org.bson.io.BsonOutput.writeByte:(I)V
1: aload 0
invokevirtual org.bson.BsonBinaryWriter.writeCurrentName:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bson/BsonBinaryWriter;
public void doWriteNull();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
getstatic org.bson.BsonType.NULL:Lorg/bson/BsonType;
invokevirtual org.bson.BsonType.getValue:()I
invokeinterface org.bson.io.BsonOutput.writeByte:(I)V
1: aload 0
invokevirtual org.bson.BsonBinaryWriter.writeCurrentName:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bson/BsonBinaryWriter;
public void doWriteObjectId(org.bson.types.ObjectId);
descriptor: (Lorg/bson/types/ObjectId;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
getstatic org.bson.BsonType.OBJECT_ID:Lorg/bson/BsonType;
invokevirtual org.bson.BsonType.getValue:()I
invokeinterface org.bson.io.BsonOutput.writeByte:(I)V
1: aload 0
invokevirtual org.bson.BsonBinaryWriter.writeCurrentName:()V
2: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
aload 1
invokevirtual org.bson.types.ObjectId.toByteArray:()[B
invokeinterface org.bson.io.BsonOutput.writeBytes:([B)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bson/BsonBinaryWriter;
0 4 1 value Lorg/bson/types/ObjectId;
MethodParameters:
Name Flags
value final
public void doWriteRegularExpression(org.bson.BsonRegularExpression);
descriptor: (Lorg/bson/BsonRegularExpression;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
getstatic org.bson.BsonType.REGULAR_EXPRESSION:Lorg/bson/BsonType;
invokevirtual org.bson.BsonType.getValue:()I
invokeinterface org.bson.io.BsonOutput.writeByte:(I)V
1: aload 0
invokevirtual org.bson.BsonBinaryWriter.writeCurrentName:()V
2: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
aload 1
invokevirtual org.bson.BsonRegularExpression.getPattern:()Ljava/lang/String;
invokeinterface org.bson.io.BsonOutput.writeCString:(Ljava/lang/String;)V
3: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
aload 1
invokevirtual org.bson.BsonRegularExpression.getOptions:()Ljava/lang/String;
invokeinterface org.bson.io.BsonOutput.writeCString:(Ljava/lang/String;)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bson/BsonBinaryWriter;
0 5 1 value Lorg/bson/BsonRegularExpression;
MethodParameters:
Name Flags
value final
public void doWriteString(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
getstatic org.bson.BsonType.STRING:Lorg/bson/BsonType;
invokevirtual org.bson.BsonType.getValue:()I
invokeinterface org.bson.io.BsonOutput.writeByte:(I)V
1: aload 0
invokevirtual org.bson.BsonBinaryWriter.writeCurrentName:()V
2: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
aload 1
invokeinterface org.bson.io.BsonOutput.writeString:(Ljava/lang/String;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bson/BsonBinaryWriter;
0 4 1 value Ljava/lang/String;
MethodParameters:
Name Flags
value final
public void doWriteSymbol(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
getstatic org.bson.BsonType.SYMBOL:Lorg/bson/BsonType;
invokevirtual org.bson.BsonType.getValue:()I
invokeinterface org.bson.io.BsonOutput.writeByte:(I)V
1: aload 0
invokevirtual org.bson.BsonBinaryWriter.writeCurrentName:()V
2: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
aload 1
invokeinterface org.bson.io.BsonOutput.writeString:(Ljava/lang/String;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bson/BsonBinaryWriter;
0 4 1 value Ljava/lang/String;
MethodParameters:
Name Flags
value final
public void doWriteTimestamp(org.bson.BsonTimestamp);
descriptor: (Lorg/bson/BsonTimestamp;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
getstatic org.bson.BsonType.TIMESTAMP:Lorg/bson/BsonType;
invokevirtual org.bson.BsonType.getValue:()I
invokeinterface org.bson.io.BsonOutput.writeByte:(I)V
1: aload 0
invokevirtual org.bson.BsonBinaryWriter.writeCurrentName:()V
2: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
aload 1
invokevirtual org.bson.BsonTimestamp.getValue:()J
invokeinterface org.bson.io.BsonOutput.writeInt64:(J)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bson/BsonBinaryWriter;
0 4 1 value Lorg/bson/BsonTimestamp;
MethodParameters:
Name Flags
value final
public void doWriteUndefined();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
getstatic org.bson.BsonType.UNDEFINED:Lorg/bson/BsonType;
invokevirtual org.bson.BsonType.getValue:()I
invokeinterface org.bson.io.BsonOutput.writeByte:(I)V
1: aload 0
invokevirtual org.bson.BsonBinaryWriter.writeCurrentName:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bson/BsonBinaryWriter;
public void pipe(org.bson.BsonReader);
descriptor: (Lorg/bson/BsonReader;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: ldc "reader"
aload 1
invokestatic org.bson.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
aload 1
aconst_null
invokevirtual org.bson.BsonBinaryWriter.pipeDocument:(Lorg/bson/BsonReader;Ljava/util/List;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bson/BsonBinaryWriter;
0 3 1 reader Lorg/bson/BsonReader;
MethodParameters:
Name Flags
reader final
public void pipe(org.bson.BsonReader, java.util.List<org.bson.BsonElement>);
descriptor: (Lorg/bson/BsonReader;Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: ldc "reader"
aload 1
invokestatic org.bson.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: ldc "extraElements"
aload 2
invokestatic org.bson.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 0
aload 1
aload 2
invokevirtual org.bson.BsonBinaryWriter.pipeDocument:(Lorg/bson/BsonReader;Ljava/util/List;)V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bson/BsonBinaryWriter;
0 4 1 reader Lorg/bson/BsonReader;
0 4 2 extraElements Ljava/util/List<Lorg/bson/BsonElement;>;
Signature: (Lorg/bson/BsonReader;Ljava/util/List<Lorg/bson/BsonElement;>;)V
MethodParameters:
Name Flags
reader final
extraElements final
private void pipeDocument(org.bson.BsonReader, java.util.List<org.bson.BsonElement>);
descriptor: (Lorg/bson/BsonReader;Ljava/util/List;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 1
instanceof org.bson.BsonBinaryReader
ifeq 32
1: aload 1
checkcast org.bson.BsonBinaryReader
astore 3
start local 3 2: aload 0
invokevirtual org.bson.BsonBinaryWriter.getState:()Lorg/bson/AbstractBsonWriter$State;
getstatic org.bson.AbstractBsonWriter$State.VALUE:Lorg/bson/AbstractBsonWriter$State;
if_acmpne 5
3: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
getstatic org.bson.BsonType.DOCUMENT:Lorg/bson/BsonType;
invokevirtual org.bson.BsonType.getValue:()I
invokeinterface org.bson.io.BsonOutput.writeByte:(I)V
4: aload 0
invokevirtual org.bson.BsonBinaryWriter.writeCurrentName:()V
5: StackMap locals: org.bson.BsonBinaryReader
StackMap stack:
aload 3
invokevirtual org.bson.BsonBinaryReader.getBsonInput:()Lorg/bson/io/BsonInput;
astore 4
start local 4 6: aload 4
invokeinterface org.bson.io.BsonInput.readInt32:()I
istore 5
start local 5 7: iload 5
iconst_5
if_icmpge 9
8: new org.bson.BsonSerializationException
dup
ldc "Document size must be at least 5"
invokespecial org.bson.BsonSerializationException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals: org.bson.io.BsonInput int
StackMap stack:
aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
invokeinterface org.bson.io.BsonOutput.getPosition:()I
istore 6
start local 6 10: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
iload 5
invokeinterface org.bson.io.BsonOutput.writeInt32:(I)V
11: iload 5
iconst_4
isub
newarray 8
astore 7
start local 7 12: aload 4
aload 7
invokeinterface org.bson.io.BsonInput.readBytes:([B)V
13: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
aload 7
invokeinterface org.bson.io.BsonOutput.writeBytes:([B)V
14: aload 3
getstatic org.bson.AbstractBsonReader$State.TYPE:Lorg/bson/AbstractBsonReader$State;
invokevirtual org.bson.BsonBinaryReader.setState:(Lorg/bson/AbstractBsonReader$State;)V
15: aload 2
ifnull 23
16: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
invokeinterface org.bson.io.BsonOutput.getPosition:()I
iconst_1
isub
invokeinterface org.bson.io.BsonOutput.truncateToPosition:(I)V
17: aload 0
new org.bson.BsonBinaryWriter$Context
dup
aload 0
aload 0
invokevirtual org.bson.BsonBinaryWriter.getContext:()Lorg/bson/BsonBinaryWriter$Context;
getstatic org.bson.BsonContextType.DOCUMENT:Lorg/bson/BsonContextType;
iload 6
invokespecial org.bson.BsonBinaryWriter$Context.<init>:(Lorg/bson/BsonBinaryWriter;Lorg/bson/BsonBinaryWriter$Context;Lorg/bson/BsonContextType;I)V
invokevirtual org.bson.BsonBinaryWriter.setContext:(Lorg/bson/AbstractBsonWriter$Context;)V
18: aload 0
getstatic org.bson.AbstractBsonWriter$State.NAME:Lorg/bson/AbstractBsonWriter$State;
invokevirtual org.bson.BsonBinaryWriter.setState:(Lorg/bson/AbstractBsonWriter$State;)V
19: aload 0
aload 2
invokevirtual org.bson.BsonBinaryWriter.pipeExtraElements:(Ljava/util/List;)V
20: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
iconst_0
invokeinterface org.bson.io.BsonOutput.writeByte:(I)V
21: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
iload 6
aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
invokeinterface org.bson.io.BsonOutput.getPosition:()I
iload 6
isub
invokeinterface org.bson.io.BsonOutput.writeInt32:(II)V
22: aload 0
aload 0
invokevirtual org.bson.BsonBinaryWriter.getContext:()Lorg/bson/BsonBinaryWriter$Context;
invokevirtual org.bson.BsonBinaryWriter$Context.getParentContext:()Lorg/bson/BsonBinaryWriter$Context;
invokevirtual org.bson.BsonBinaryWriter.setContext:(Lorg/bson/AbstractBsonWriter$Context;)V
23: StackMap locals: int byte[]
StackMap stack:
aload 0
invokevirtual org.bson.BsonBinaryWriter.getContext:()Lorg/bson/BsonBinaryWriter$Context;
ifnonnull 26
24: aload 0
getstatic org.bson.AbstractBsonWriter$State.DONE:Lorg/bson/AbstractBsonWriter$State;
invokevirtual org.bson.BsonBinaryWriter.setState:(Lorg/bson/AbstractBsonWriter$State;)V
25: goto 30
26: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.bson.BsonBinaryWriter.getContext:()Lorg/bson/BsonBinaryWriter$Context;
invokevirtual org.bson.BsonBinaryWriter$Context.getContextType:()Lorg/bson/BsonContextType;
getstatic org.bson.BsonContextType.JAVASCRIPT_WITH_SCOPE:Lorg/bson/BsonContextType;
if_acmpne 29
27: aload 0
invokevirtual org.bson.BsonBinaryWriter.backpatchSize:()V
28: aload 0
aload 0
invokevirtual org.bson.BsonBinaryWriter.getContext:()Lorg/bson/BsonBinaryWriter$Context;
invokevirtual org.bson.BsonBinaryWriter$Context.getParentContext:()Lorg/bson/BsonBinaryWriter$Context;
invokevirtual org.bson.BsonBinaryWriter.setContext:(Lorg/bson/AbstractBsonWriter$Context;)V
29: StackMap locals:
StackMap stack:
aload 0
aload 0
invokevirtual org.bson.BsonBinaryWriter.getNextState:()Lorg/bson/AbstractBsonWriter$State;
invokevirtual org.bson.BsonBinaryWriter.setState:(Lorg/bson/AbstractBsonWriter$State;)V
30: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
invokeinterface org.bson.io.BsonOutput.getPosition:()I
iload 6
isub
invokevirtual org.bson.BsonBinaryWriter.validateSize:(I)V
end local 7 end local 6 end local 5 end local 4 end local 3 31: goto 36
StackMap locals: org.bson.BsonBinaryWriter org.bson.BsonReader java.util.List
StackMap stack:
32: aload 2
ifnull 35
33: aload 0
aload 1
aload 2
invokespecial org.bson.AbstractBsonWriter.pipe:(Lorg/bson/BsonReader;Ljava/util/List;)V
34: goto 36
35: StackMap locals:
StackMap stack:
aload 0
aload 1
invokespecial org.bson.AbstractBsonWriter.pipe:(Lorg/bson/BsonReader;)V
36: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 37 0 this Lorg/bson/BsonBinaryWriter;
0 37 1 reader Lorg/bson/BsonReader;
0 37 2 extraElements Ljava/util/List<Lorg/bson/BsonElement;>;
2 31 3 binaryReader Lorg/bson/BsonBinaryReader;
6 31 4 bsonInput Lorg/bson/io/BsonInput;
7 31 5 size I
10 31 6 pipedDocumentStartPosition I
12 31 7 bytes [B
Signature: (Lorg/bson/BsonReader;Ljava/util/List<Lorg/bson/BsonElement;>;)V
MethodParameters:
Name Flags
reader final
extraElements final
public void pushMaxDocumentSize(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bson.BsonBinaryWriter.maxDocumentSizeStack:Ljava/util/Stack;
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual java.util.Stack.push:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bson/BsonBinaryWriter;
0 2 1 maxDocumentSize I
MethodParameters:
Name Flags
maxDocumentSize final
public void popMaxDocumentSize();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bson.BsonBinaryWriter.maxDocumentSizeStack:Ljava/util/Stack;
invokevirtual java.util.Stack.pop:()Ljava/lang/Object;
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bson/BsonBinaryWriter;
public void mark();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
new org.bson.BsonBinaryWriter$Mark
dup
aload 0
invokespecial org.bson.BsonBinaryWriter$Mark.<init>:(Lorg/bson/BsonBinaryWriter;)V
putfield org.bson.BsonBinaryWriter.mark:Lorg/bson/BsonBinaryWriter$Mark;
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bson/BsonBinaryWriter;
public void reset();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bson.BsonBinaryWriter.mark:Lorg/bson/BsonBinaryWriter$Mark;
ifnonnull 2
1: new java.lang.IllegalStateException
dup
ldc "Can not reset without first marking"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.bson.BsonBinaryWriter.mark:Lorg/bson/BsonBinaryWriter$Mark;
invokevirtual org.bson.BsonBinaryWriter$Mark.reset:()V
3: aload 0
aconst_null
putfield org.bson.BsonBinaryWriter.mark:Lorg/bson/BsonBinaryWriter$Mark;
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bson/BsonBinaryWriter;
private void writeCurrentName();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.bson.BsonBinaryWriter.getContext:()Lorg/bson/BsonBinaryWriter$Context;
invokevirtual org.bson.BsonBinaryWriter$Context.getContextType:()Lorg/bson/BsonContextType;
getstatic org.bson.BsonContextType.ARRAY:Lorg/bson/BsonContextType;
if_acmpne 3
1: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
aload 0
invokevirtual org.bson.BsonBinaryWriter.getContext:()Lorg/bson/BsonBinaryWriter$Context;
dup
getfield org.bson.BsonBinaryWriter$Context.index:I
dup_x1
iconst_1
iadd
putfield org.bson.BsonBinaryWriter$Context.index:I
invokestatic java.lang.Integer.toString:(I)Ljava/lang/String;
invokeinterface org.bson.io.BsonOutput.writeCString:(Ljava/lang/String;)V
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
aload 0
invokevirtual org.bson.BsonBinaryWriter.getName:()Ljava/lang/String;
invokeinterface org.bson.io.BsonOutput.writeCString:(Ljava/lang/String;)V
4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bson/BsonBinaryWriter;
private void backpatchSize();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
invokeinterface org.bson.io.BsonOutput.getPosition:()I
aload 0
invokevirtual org.bson.BsonBinaryWriter.getContext:()Lorg/bson/BsonBinaryWriter$Context;
getfield org.bson.BsonBinaryWriter$Context.startPosition:I
isub
istore 1
start local 1 1: aload 0
iload 1
invokevirtual org.bson.BsonBinaryWriter.validateSize:(I)V
2: aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
aload 0
getfield org.bson.BsonBinaryWriter.bsonOutput:Lorg/bson/io/BsonOutput;
invokeinterface org.bson.io.BsonOutput.getPosition:()I
iload 1
isub
iload 1
invokeinterface org.bson.io.BsonOutput.writeInt32:(II)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bson/BsonBinaryWriter;
1 4 1 size I
private void validateSize(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=2, args_size=2
start local 0 start local 1 0: iload 1
aload 0
getfield org.bson.BsonBinaryWriter.maxDocumentSizeStack:Ljava/util/Stack;
invokevirtual java.util.Stack.peek:()Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
if_icmple 4
1: new org.bson.BsonMaximumSizeExceededException
dup
ldc "Document size of %d is larger than maximum of %d."
iconst_2
anewarray java.lang.Object
dup
iconst_0
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
2: aload 0
getfield org.bson.BsonBinaryWriter.maxDocumentSizeStack:Ljava/util/Stack;
invokevirtual java.util.Stack.peek:()Ljava/lang/Object;
aastore
3: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial org.bson.BsonMaximumSizeExceededException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bson/BsonBinaryWriter;
0 5 1 size I
MethodParameters:
Name Flags
size final
protected org.bson.AbstractBsonWriter$Context getContext();
descriptor: ()Lorg/bson/AbstractBsonWriter$Context;
flags: (0x1044) ACC_PROTECTED, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual org.bson.BsonBinaryWriter.getContext:()Lorg/bson/BsonBinaryWriter$Context;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "BsonBinaryWriter.java"
NestMembers:
org.bson.BsonBinaryWriter$Context org.bson.BsonBinaryWriter$Mark
InnerClasses:
public final State = org.bson.AbstractBsonReader$State of org.bson.AbstractBsonReader
public Context = org.bson.AbstractBsonWriter$Context of org.bson.AbstractBsonWriter
public final State = org.bson.AbstractBsonWriter$State of org.bson.AbstractBsonWriter
protected Context = org.bson.BsonBinaryWriter$Context of org.bson.BsonBinaryWriter
protected Mark = org.bson.BsonBinaryWriter$Mark of org.bson.BsonBinaryWriter