public final class org.bouncycastle.util.io.Streams
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.bouncycastle.util.io.Streams
super_class: java.lang.Object
{
private static int BUFFER_SIZE;
descriptor: I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: sipush 512
putstatic org.bouncycastle.util.io.Streams.BUFFER_SIZE:I
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/util/io/Streams;
public static void drain(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: getstatic org.bouncycastle.util.io.Streams.BUFFER_SIZE:I
newarray 8
astore 1
start local 1 1: StackMap locals: byte[]
StackMap stack:
aload 0
aload 1
iconst_0
aload 1
arraylength
invokevirtual java.io.InputStream.read:([BII)I
ifge 1
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 inStr Ljava/io/InputStream;
1 3 1 bs [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
inStr
public static byte[] readAll(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
astore 1
start local 1 1: aload 0
aload 1
invokestatic org.bouncycastle.util.io.Streams.pipeAll:(Ljava/io/InputStream;Ljava/io/OutputStream;)V
2: aload 1
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 inStr Ljava/io/InputStream;
1 3 1 buf Ljava/io/ByteArrayOutputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
inStr
public static byte[] readAllLimited(java.io.InputStream, int);
descriptor: (Ljava/io/InputStream;I)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
astore 2
start local 2 1: aload 0
iload 1
i2l
aload 2
invokestatic org.bouncycastle.util.io.Streams.pipeAllLimited:(Ljava/io/InputStream;JLjava/io/OutputStream;)J
pop2
2: aload 2
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 inStr Ljava/io/InputStream;
0 3 1 limit I
1 3 2 buf Ljava/io/ByteArrayOutputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
inStr
limit
public static int readFully(java.io.InputStream, byte[]);
descriptor: (Ljava/io/InputStream;[B)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
aload 1
arraylength
invokestatic org.bouncycastle.util.io.Streams.readFully:(Ljava/io/InputStream;[BII)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 inStr Ljava/io/InputStream;
0 1 1 buf [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
inStr
buf
public static int readFully(java.io.InputStream, byte[], int, int);
descriptor: (Ljava/io/InputStream;[BII)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iconst_0
istore 4
start local 4 1: goto 6
2: StackMap locals: int
StackMap stack:
aload 0
aload 1
iload 2
iload 4
iadd
iload 3
iload 4
isub
invokevirtual java.io.InputStream.read:([BII)I
istore 5
start local 5 3: iload 5
ifge 5
4: goto 7
5: StackMap locals: int
StackMap stack:
iload 4
iload 5
iadd
istore 4
end local 5 6: StackMap locals:
StackMap stack:
iload 4
iload 3
if_icmplt 2
7: StackMap locals:
StackMap stack:
iload 4
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 inStr Ljava/io/InputStream;
0 8 1 buf [B
0 8 2 off I
0 8 3 len I
1 8 4 totalRead I
3 6 5 numRead I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
inStr
buf
off
len
public static void pipeAll(java.io.InputStream, java.io.OutputStream);
descriptor: (Ljava/io/InputStream;Ljava/io/OutputStream;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: getstatic org.bouncycastle.util.io.Streams.BUFFER_SIZE:I
newarray 8
astore 2
start local 2 1: goto 3
start local 3 2: StackMap locals: byte[] int
StackMap stack:
aload 1
aload 2
iconst_0
iload 3
invokevirtual java.io.OutputStream.write:([BII)V
end local 3 3: StackMap locals:
StackMap stack:
aload 0
aload 2
iconst_0
aload 2
arraylength
invokevirtual java.io.InputStream.read:([BII)I
dup
istore 3
start local 3 4: ifge 2
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 inStr Ljava/io/InputStream;
0 6 1 outStr Ljava/io/OutputStream;
1 6 2 bs [B
2 3 3 numRead I
4 6 3 numRead I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
inStr
outStr
public static long pipeAllLimited(java.io.InputStream, long, java.io.OutputStream);
descriptor: (Ljava/io/InputStream;JLjava/io/OutputStream;)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=8, args_size=3
start local 0 start local 1 start local 3 0: lconst_0
lstore 4
start local 4 1: getstatic org.bouncycastle.util.io.Streams.BUFFER_SIZE:I
newarray 8
astore 6
start local 6 2: goto 7
start local 7 3: StackMap locals: long byte[] int
StackMap stack:
lload 4
iload 7
i2l
ladd
lstore 4
4: lload 4
lload 1
lcmp
ifle 6
5: new org.bouncycastle.util.io.StreamOverflowException
dup
ldc "Data Overflow"
invokespecial org.bouncycastle.util.io.StreamOverflowException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 3
aload 6
iconst_0
iload 7
invokevirtual java.io.OutputStream.write:([BII)V
end local 7 7: StackMap locals:
StackMap stack:
aload 0
aload 6
iconst_0
aload 6
arraylength
invokevirtual java.io.InputStream.read:([BII)I
dup
istore 7
start local 7 8: ifge 3
9: lload 4
lreturn
end local 7 end local 6 end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 inStr Ljava/io/InputStream;
0 10 1 limit J
0 10 3 outStr Ljava/io/OutputStream;
1 10 4 total J
2 10 6 bs [B
3 7 7 numRead I
8 10 7 numRead I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
inStr
limit
outStr
}
SourceFile: "Streams.java"