public class org.bouncycastle.util.io.BufferingOutputStream extends java.io.OutputStream
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.util.io.BufferingOutputStream
super_class: java.io.OutputStream
{
private final java.io.OutputStream other;
descriptor: Ljava/io/OutputStream;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final byte[] buf;
descriptor: [B
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private int bufOff;
descriptor: I
flags: (0x0002) ACC_PRIVATE
public void <init>(java.io.OutputStream);
descriptor: (Ljava/io/OutputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.io.OutputStream.<init>:()V
1: aload 0
aload 1
putfield org.bouncycastle.util.io.BufferingOutputStream.other:Ljava/io/OutputStream;
2: aload 0
sipush 4096
newarray 8
putfield org.bouncycastle.util.io.BufferingOutputStream.buf:[B
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bouncycastle/util/io/BufferingOutputStream;
0 4 1 other Ljava/io/OutputStream;
MethodParameters:
Name Flags
other
public void <init>(java.io.OutputStream, int);
descriptor: (Ljava/io/OutputStream;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.io.OutputStream.<init>:()V
1: aload 0
aload 1
putfield org.bouncycastle.util.io.BufferingOutputStream.other:Ljava/io/OutputStream;
2: aload 0
iload 2
newarray 8
putfield org.bouncycastle.util.io.BufferingOutputStream.buf:[B
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bouncycastle/util/io/BufferingOutputStream;
0 4 1 other Ljava/io/OutputStream;
0 4 2 bufferSize I
MethodParameters:
Name Flags
other
bufferSize
public void write(byte[], int, int);
descriptor: ([BII)V
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: iload 3
aload 0
getfield org.bouncycastle.util.io.BufferingOutputStream.buf:[B
arraylength
aload 0
getfield org.bouncycastle.util.io.BufferingOutputStream.bufOff:I
isub
if_icmpge 4
1: aload 1
iload 2
aload 0
getfield org.bouncycastle.util.io.BufferingOutputStream.buf:[B
aload 0
getfield org.bouncycastle.util.io.BufferingOutputStream.bufOff:I
iload 3
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
2: aload 0
dup
getfield org.bouncycastle.util.io.BufferingOutputStream.bufOff:I
iload 3
iadd
putfield org.bouncycastle.util.io.BufferingOutputStream.bufOff:I
3: goto 18
4: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.util.io.BufferingOutputStream.buf:[B
arraylength
aload 0
getfield org.bouncycastle.util.io.BufferingOutputStream.bufOff:I
isub
istore 4
start local 4 5: aload 1
iload 2
aload 0
getfield org.bouncycastle.util.io.BufferingOutputStream.buf:[B
aload 0
getfield org.bouncycastle.util.io.BufferingOutputStream.bufOff:I
iload 4
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
6: aload 0
dup
getfield org.bouncycastle.util.io.BufferingOutputStream.bufOff:I
iload 4
iadd
putfield org.bouncycastle.util.io.BufferingOutputStream.bufOff:I
7: aload 0
invokevirtual org.bouncycastle.util.io.BufferingOutputStream.flush:()V
8: iload 2
iload 4
iadd
istore 2
9: iload 3
iload 4
isub
istore 3
10: goto 14
11: StackMap locals: int
StackMap stack:
aload 0
getfield org.bouncycastle.util.io.BufferingOutputStream.other:Ljava/io/OutputStream;
aload 1
iload 2
aload 0
getfield org.bouncycastle.util.io.BufferingOutputStream.buf:[B
arraylength
invokevirtual java.io.OutputStream.write:([BII)V
12: iload 2
aload 0
getfield org.bouncycastle.util.io.BufferingOutputStream.buf:[B
arraylength
iadd
istore 2
13: iload 3
aload 0
getfield org.bouncycastle.util.io.BufferingOutputStream.buf:[B
arraylength
isub
istore 3
14: StackMap locals:
StackMap stack:
iload 3
aload 0
getfield org.bouncycastle.util.io.BufferingOutputStream.buf:[B
arraylength
if_icmpge 11
15: iload 3
ifle 18
16: aload 1
iload 2
aload 0
getfield org.bouncycastle.util.io.BufferingOutputStream.buf:[B
aload 0
getfield org.bouncycastle.util.io.BufferingOutputStream.bufOff:I
iload 3
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
17: aload 0
dup
getfield org.bouncycastle.util.io.BufferingOutputStream.bufOff:I
iload 3
iadd
putfield org.bouncycastle.util.io.BufferingOutputStream.bufOff:I
end local 4 18: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lorg/bouncycastle/util/io/BufferingOutputStream;
0 19 1 bytes [B
0 19 2 offset I
0 19 3 len I
5 18 4 gap I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
bytes
offset
len
public void write(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bouncycastle.util.io.BufferingOutputStream.buf:[B
aload 0
dup
getfield org.bouncycastle.util.io.BufferingOutputStream.bufOff:I
dup_x1
iconst_1
iadd
putfield org.bouncycastle.util.io.BufferingOutputStream.bufOff:I
iload 1
i2b
bastore
1: aload 0
getfield org.bouncycastle.util.io.BufferingOutputStream.bufOff:I
aload 0
getfield org.bouncycastle.util.io.BufferingOutputStream.buf:[B
arraylength
if_icmpne 3
2: aload 0
invokevirtual org.bouncycastle.util.io.BufferingOutputStream.flush:()V
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bouncycastle/util/io/BufferingOutputStream;
0 4 1 b I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
public void flush();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.util.io.BufferingOutputStream.other:Ljava/io/OutputStream;
aload 0
getfield org.bouncycastle.util.io.BufferingOutputStream.buf:[B
iconst_0
aload 0
getfield org.bouncycastle.util.io.BufferingOutputStream.bufOff:I
invokevirtual java.io.OutputStream.write:([BII)V
1: aload 0
iconst_0
putfield org.bouncycastle.util.io.BufferingOutputStream.bufOff:I
2: aload 0
getfield org.bouncycastle.util.io.BufferingOutputStream.buf:[B
iconst_0
invokestatic org.bouncycastle.util.Arrays.fill:([BB)V
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bouncycastle/util/io/BufferingOutputStream;
Exceptions:
throws java.io.IOException
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.bouncycastle.util.io.BufferingOutputStream.flush:()V
1: aload 0
getfield org.bouncycastle.util.io.BufferingOutputStream.other:Ljava/io/OutputStream;
invokevirtual java.io.OutputStream.close:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/util/io/BufferingOutputStream;
Exceptions:
throws java.io.IOException
}
SourceFile: "BufferingOutputStream.java"