public class sun.security.util.IOUtils
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: sun.security.util.IOUtils
  super_class: java.lang.Object
{
  public void <init>();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // sun.security.util.IOUtils this
         0: .line 37
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // sun.security.util.IOUtils this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lsun/security/util/IOUtils;

  public static byte[] readFully(java.io.InputStream, int, boolean);
    descriptor: (Ljava/io/InputStream;IZ)[B
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=4, locals=7, args_size=3
        start local 0 // java.io.InputStream is
        start local 1 // int length
        start local 2 // boolean readAll
         0: .line 51
            iload 1 /* length */
            ifge 2
         1: .line 52
            new java.io.IOException
            dup
            ldc "Invalid length"
            invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 54
      StackMap locals:
      StackMap stack:
            iconst_0
            newarray 8
            astore 3 /* output */
        start local 3 // byte[] output
         3: .line 55
            iconst_0
            istore 4 /* pos */
        start local 4 // int pos
         4: .line 56
            goto 19
         5: .line 58
      StackMap locals: byte[] int
      StackMap stack:
            iload 4 /* pos */
            aload 3 /* output */
            arraylength
            if_icmplt 10
         6: .line 59
            iload 1 /* length */
            iload 4 /* pos */
            isub
            aload 3 /* output */
            arraylength
            sipush 1024
            iadd
            invokestatic java.lang.Math.min:(II)I
            istore 5 /* bytesToRead */
        start local 5 // int bytesToRead
         7: .line 60
            aload 3 /* output */
            arraylength
            iload 4 /* pos */
            iload 5 /* bytesToRead */
            iadd
            if_icmpge 11
         8: .line 61
            aload 3 /* output */
            iload 4 /* pos */
            iload 5 /* bytesToRead */
            iadd
            invokestatic java.util.Arrays.copyOf:([BI)[B
            astore 3 /* output */
         9: .line 63
            goto 11
        end local 5 // int bytesToRead
        10: .line 64
      StackMap locals:
      StackMap stack:
            aload 3 /* output */
            arraylength
            iload 4 /* pos */
            isub
            istore 5 /* bytesToRead */
        start local 5 // int bytesToRead
        11: .line 66
      StackMap locals: int
      StackMap stack:
            aload 0 /* is */
            aload 3 /* output */
            iload 4 /* pos */
            iload 5 /* bytesToRead */
            invokevirtual java.io.InputStream.read:([BII)I
            istore 6 /* cc */
        start local 6 // int cc
        12: .line 67
            iload 6 /* cc */
            ifge 18
        13: .line 68
            iload 2 /* readAll */
            ifeq 15
        14: .line 69
            new java.io.EOFException
            dup
            ldc "Detect premature EOF"
            invokespecial java.io.EOFException.<init>:(Ljava/lang/String;)V
            athrow
        15: .line 71
      StackMap locals: int
      StackMap stack:
            aload 3 /* output */
            arraylength
            iload 4 /* pos */
            if_icmpeq 20
        16: .line 72
            aload 3 /* output */
            iload 4 /* pos */
            invokestatic java.util.Arrays.copyOf:([BI)[B
            astore 3 /* output */
        17: .line 74
            goto 20
        18: .line 77
      StackMap locals:
      StackMap stack:
            iload 4 /* pos */
            iload 6 /* cc */
            iadd
            istore 4 /* pos */
        end local 6 // int cc
        end local 5 // int bytesToRead
        19: .line 56
      StackMap locals:
      StackMap stack:
            iload 4 /* pos */
            iload 1 /* length */
            if_icmplt 5
        20: .line 79
      StackMap locals:
      StackMap stack:
            aload 3 /* output */
            areturn
        end local 4 // int pos
        end local 3 // byte[] output
        end local 2 // boolean readAll
        end local 1 // int length
        end local 0 // java.io.InputStream is
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0   21     0           is  Ljava/io/InputStream;
            0   21     1       length  I
            0   21     2      readAll  Z
            3   21     3       output  [B
            4   21     4          pos  I
            7   10     5  bytesToRead  I
           11   19     5  bytesToRead  I
           12   19     6           cc  I
    Exceptions:
      throws java.io.IOException
    MethodParameters:
         Name  Flags
      is       
      length   
      readAll  

  public static byte[] readNBytes(java.io.InputStream, int);
    descriptor: (Ljava/io/InputStream;I)[B
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=5, locals=2, args_size=2
        start local 0 // java.io.InputStream is
        start local 1 // int length
         0: .line 94
            iload 1 /* length */
            ifge 2
         1: .line 95
            new java.io.IOException
            dup
            new java.lang.StringBuilder
            dup
            ldc "length cannot be negative: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            iload 1 /* length */
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 97
      StackMap locals:
      StackMap stack:
            aload 0 /* is */
            iload 1 /* length */
            iconst_1
            invokestatic sun.security.util.IOUtils.readFully:(Ljava/io/InputStream;IZ)[B
            areturn
        end local 1 // int length
        end local 0 // java.io.InputStream is
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    3     0      is  Ljava/io/InputStream;
            0    3     1  length  I
    Exceptions:
      throws java.io.IOException
    MethodParameters:
        Name  Flags
      is      
      length  
}
SourceFile: "IOUtils.java"