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: .line 10
            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 // org.bouncycastle.util.io.Streams this
         0: .line 8
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // org.bouncycastle.util.io.Streams this
      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 // java.io.InputStream inStr
         0: .line 15
            getstatic org.bouncycastle.util.io.Streams.BUFFER_SIZE:I
            newarray 8
            astore 1 /* bs */
        start local 1 // byte[] bs
         1: .line 16
      StackMap locals: byte[]
      StackMap stack:
            aload 0 /* inStr */
            aload 1 /* bs */
            iconst_0
            aload 1 /* bs */
            arraylength
            invokevirtual java.io.InputStream.read:([BII)I
            ifge 1
         2: .line 19
            return
        end local 1 // byte[] bs
        end local 0 // java.io.InputStream inStr
      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 // java.io.InputStream inStr
         0: .line 24
            new java.io.ByteArrayOutputStream
            dup
            invokespecial java.io.ByteArrayOutputStream.<init>:()V
            astore 1 /* buf */
        start local 1 // java.io.ByteArrayOutputStream buf
         1: .line 25
            aload 0 /* inStr */
            aload 1 /* buf */
            invokestatic org.bouncycastle.util.io.Streams.pipeAll:(Ljava/io/InputStream;Ljava/io/OutputStream;)V
         2: .line 26
            aload 1 /* buf */
            invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
            areturn
        end local 1 // java.io.ByteArrayOutputStream buf
        end local 0 // java.io.InputStream inStr
      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 // java.io.InputStream inStr
        start local 1 // int limit
         0: .line 32
            new java.io.ByteArrayOutputStream
            dup
            invokespecial java.io.ByteArrayOutputStream.<init>:()V
            astore 2 /* buf */
        start local 2 // java.io.ByteArrayOutputStream buf
         1: .line 33
            aload 0 /* inStr */
            iload 1 /* limit */
            i2l
            aload 2 /* buf */
            invokestatic org.bouncycastle.util.io.Streams.pipeAllLimited:(Ljava/io/InputStream;JLjava/io/OutputStream;)J
            pop2
         2: .line 34
            aload 2 /* buf */
            invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
            areturn
        end local 2 // java.io.ByteArrayOutputStream buf
        end local 1 // int limit
        end local 0 // java.io.InputStream inStr
      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 // java.io.InputStream inStr
        start local 1 // byte[] buf
         0: .line 40
            aload 0 /* inStr */
            aload 1 /* buf */
            iconst_0
            aload 1 /* buf */
            arraylength
            invokestatic org.bouncycastle.util.io.Streams.readFully:(Ljava/io/InputStream;[BII)I
            ireturn
        end local 1 // byte[] buf
        end local 0 // java.io.InputStream inStr
      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 // java.io.InputStream inStr
        start local 1 // byte[] buf
        start local 2 // int off
        start local 3 // int len
         0: .line 46
            iconst_0
            istore 4 /* totalRead */
        start local 4 // int totalRead
         1: .line 47
            goto 6
         2: .line 49
      StackMap locals: int
      StackMap stack:
            aload 0 /* inStr */
            aload 1 /* buf */
            iload 2 /* off */
            iload 4 /* totalRead */
            iadd
            iload 3 /* len */
            iload 4 /* totalRead */
            isub
            invokevirtual java.io.InputStream.read:([BII)I
            istore 5 /* numRead */
        start local 5 // int numRead
         3: .line 50
            iload 5 /* numRead */
            ifge 5
         4: .line 52
            goto 7
         5: .line 54
      StackMap locals: int
      StackMap stack:
            iload 4 /* totalRead */
            iload 5 /* numRead */
            iadd
            istore 4 /* totalRead */
        end local 5 // int numRead
         6: .line 47
      StackMap locals:
      StackMap stack:
            iload 4 /* totalRead */
            iload 3 /* len */
            if_icmplt 2
         7: .line 56
      StackMap locals:
      StackMap stack:
            iload 4 /* totalRead */
            ireturn
        end local 4 // int totalRead
        end local 3 // int len
        end local 2 // int off
        end local 1 // byte[] buf
        end local 0 // java.io.InputStream inStr
      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 // java.io.InputStream inStr
        start local 1 // java.io.OutputStream outStr
         0: .line 62
            getstatic org.bouncycastle.util.io.Streams.BUFFER_SIZE:I
            newarray 8
            astore 2 /* bs */
        start local 2 // byte[] bs
         1: .line 64
            goto 3
        start local 3 // int numRead
         2: .line 66
      StackMap locals: byte[] int
      StackMap stack:
            aload 1 /* outStr */
            aload 2 /* bs */
            iconst_0
            iload 3 /* numRead */
            invokevirtual java.io.OutputStream.write:([BII)V
        end local 3 // int numRead
         3: .line 64
      StackMap locals:
      StackMap stack:
            aload 0 /* inStr */
            aload 2 /* bs */
            iconst_0
            aload 2 /* bs */
            arraylength
            invokevirtual java.io.InputStream.read:([BII)I
            dup
            istore 3 /* numRead */
        start local 3 // int numRead
         4: ifge 2
         5: .line 68
            return
        end local 3 // int numRead
        end local 2 // byte[] bs
        end local 1 // java.io.OutputStream outStr
        end local 0 // java.io.InputStream inStr
      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 // java.io.InputStream inStr
        start local 1 // long limit
        start local 3 // java.io.OutputStream outStr
         0: .line 73
            lconst_0
            lstore 4 /* total */
        start local 4 // long total
         1: .line 74
            getstatic org.bouncycastle.util.io.Streams.BUFFER_SIZE:I
            newarray 8
            astore 6 /* bs */
        start local 6 // byte[] bs
         2: .line 76
            goto 7
        start local 7 // int numRead
         3: .line 78
      StackMap locals: long byte[] int
      StackMap stack:
            lload 4 /* total */
            iload 7 /* numRead */
            i2l
            ladd
            lstore 4 /* total */
         4: .line 79
            lload 4 /* total */
            lload 1 /* limit */
            lcmp
            ifle 6
         5: .line 81
            new org.bouncycastle.util.io.StreamOverflowException
            dup
            ldc "Data Overflow"
            invokespecial org.bouncycastle.util.io.StreamOverflowException.<init>:(Ljava/lang/String;)V
            athrow
         6: .line 83
      StackMap locals:
      StackMap stack:
            aload 3 /* outStr */
            aload 6 /* bs */
            iconst_0
            iload 7 /* numRead */
            invokevirtual java.io.OutputStream.write:([BII)V
        end local 7 // int numRead
         7: .line 76
      StackMap locals:
      StackMap stack:
            aload 0 /* inStr */
            aload 6 /* bs */
            iconst_0
            aload 6 /* bs */
            arraylength
            invokevirtual java.io.InputStream.read:([BII)I
            dup
            istore 7 /* numRead */
        start local 7 // int numRead
         8: ifge 3
         9: .line 85
            lload 4 /* total */
            lreturn
        end local 7 // int numRead
        end local 6 // byte[] bs
        end local 4 // long total
        end local 3 // java.io.OutputStream outStr
        end local 1 // long limit
        end local 0 // java.io.InputStream inStr
      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"