class jdk.jshell.execution.PipeInputStream extends java.io.InputStream
  minor version: 0
  major version: 59
  flags: flags: (0x0020) ACC_SUPER
  this_class: jdk.jshell.execution.PipeInputStream
  super_class: java.io.InputStream
{
  private static final int INITIAL_SIZE;
    descriptor: I
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: 128

  private int[] buffer;
    descriptor: [I
    flags: (0x0002) ACC_PRIVATE

  private int start;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  private int end;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  private boolean closed;
    descriptor: Z
    flags: (0x0002) ACC_PRIVATE

  void <init>();
    descriptor: ()V
    flags: (0x0000) 
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // jdk.jshell.execution.PipeInputStream this
         0: .line 35
            aload 0 /* this */
            invokespecial java.io.InputStream.<init>:()V
         1: .line 38
            aload 0 /* this */
            sipush 128
            newarray 10
            putfield jdk.jshell.execution.PipeInputStream.buffer:[I
         2: .line 35
            return
        end local 0 // jdk.jshell.execution.PipeInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Ljdk/jshell/execution/PipeInputStream;

  public synchronized int read();
    descriptor: ()I
    flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
    Code:
      stack=3, locals=3, args_size=1
        start local 0 // jdk.jshell.execution.PipeInputStream this
         0: .line 45
            aload 0 /* this */
            getfield jdk.jshell.execution.PipeInputStream.start:I
            aload 0 /* this */
            getfield jdk.jshell.execution.PipeInputStream.end:I
            if_icmpne 8
            aload 0 /* this */
            getfield jdk.jshell.execution.PipeInputStream.closed:Z
            ifne 8
         1: .line 46
            aload 0 /* this */
            invokevirtual jdk.jshell.execution.PipeInputStream.inputNeeded:()V
         2: .line 48
            goto 8
         3: .line 49
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.jshell.execution.PipeInputStream.closed:Z
            ifeq 5
         4: .line 50
            iconst_m1
            ireturn
         5: .line 53
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokevirtual java.lang.Object.wait:()V
         6: .line 54
            goto 8
      StackMap locals:
      StackMap stack: java.lang.InterruptedException
         7: pop
         8: .line 48
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.jshell.execution.PipeInputStream.start:I
            aload 0 /* this */
            getfield jdk.jshell.execution.PipeInputStream.end:I
            if_icmpeq 3
         9: .line 59
            aload 0 /* this */
            getfield jdk.jshell.execution.PipeInputStream.buffer:[I
            aload 0 /* this */
            getfield jdk.jshell.execution.PipeInputStream.start:I
            iaload
            istore 2
        10: .line 61
            aload 0 /* this */
            aload 0 /* this */
            getfield jdk.jshell.execution.PipeInputStream.start:I
            iconst_1
            iadd
            aload 0 /* this */
            getfield jdk.jshell.execution.PipeInputStream.buffer:[I
            arraylength
            irem
            putfield jdk.jshell.execution.PipeInputStream.start:I
        11: .line 59
            iload 2
            ireturn
        12: .line 60
      StackMap locals:
      StackMap stack: java.lang.Throwable
            astore 1
        13: .line 61
            aload 0 /* this */
            aload 0 /* this */
            getfield jdk.jshell.execution.PipeInputStream.start:I
            iconst_1
            iadd
            aload 0 /* this */
            getfield jdk.jshell.execution.PipeInputStream.buffer:[I
            arraylength
            irem
            putfield jdk.jshell.execution.PipeInputStream.start:I
        14: .line 62
            aload 1
            athrow
        end local 0 // jdk.jshell.execution.PipeInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   15     0  this  Ljdk/jshell/execution/PipeInputStream;
      Exception table:
        from    to  target  type
           5     6       7  Class java.lang.InterruptedException
           9    10      12  any
    Exceptions:
      throws java.io.IOException

  public synchronized int read(byte[], int, int);
    descriptor: ([BII)I
    flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
    Code:
      stack=3, locals=7, args_size=4
        start local 0 // jdk.jshell.execution.PipeInputStream this
        start local 1 // byte[] b
        start local 2 // int off
        start local 3 // int len
         0: .line 67
            aload 1 /* b */
            ifnonnull 2
         1: .line 68
            new java.lang.NullPointerException
            dup
            invokespecial java.lang.NullPointerException.<init>:()V
            athrow
         2: .line 69
      StackMap locals:
      StackMap stack:
            iload 2 /* off */
            iflt 3
            iload 3 /* len */
            iflt 3
            iload 3 /* len */
            aload 1 /* b */
            arraylength
            iload 2 /* off */
            isub
            if_icmple 4
         3: .line 70
      StackMap locals:
      StackMap stack:
            new java.lang.IndexOutOfBoundsException
            dup
            invokespecial java.lang.IndexOutOfBoundsException.<init>:()V
            athrow
         4: .line 71
      StackMap locals:
      StackMap stack:
            iload 3 /* len */
            ifne 6
         5: .line 72
            iconst_0
            ireturn
         6: .line 75
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokevirtual jdk.jshell.execution.PipeInputStream.read:()I
            istore 4 /* c */
        start local 4 // int c
         7: .line 76
            iload 4 /* c */
            iconst_m1
            if_icmpne 9
         8: .line 77
            iconst_m1
            ireturn
         9: .line 79
      StackMap locals: int
      StackMap stack:
            aload 1 /* b */
            iload 2 /* off */
            iload 4 /* c */
            i2b
            bastore
        10: .line 81
            iconst_1
            istore 5 /* totalRead */
        start local 5 // int totalRead
        11: .line 82
            goto 16
        12: .line 83
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            invokevirtual jdk.jshell.execution.PipeInputStream.read:()I
            istore 6 /* r */
        start local 6 // int r
        13: .line 84
            iload 6 /* r */
            iconst_m1
            if_icmpne 15
        14: .line 85
            goto 17
        15: .line 86
      StackMap locals: int
      StackMap stack:
            aload 1 /* b */
            iload 2 /* off */
            iload 5 /* totalRead */
            iinc 5 /* totalRead */ 1
            iadd
            iload 6 /* r */
            i2b
            bastore
        end local 6 // int r
        16: .line 82
      StackMap locals:
      StackMap stack:
            iload 5 /* totalRead */
            iload 3 /* len */
            if_icmpge 17
            aload 0 /* this */
            getfield jdk.jshell.execution.PipeInputStream.start:I
            aload 0 /* this */
            getfield jdk.jshell.execution.PipeInputStream.end:I
            if_icmpne 12
        17: .line 88
      StackMap locals:
      StackMap stack:
            iload 5 /* totalRead */
            ireturn
        end local 5 // int totalRead
        end local 4 // int c
        end local 3 // int len
        end local 2 // int off
        end local 1 // byte[] b
        end local 0 // jdk.jshell.execution.PipeInputStream this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0   18     0       this  Ljdk/jshell/execution/PipeInputStream;
            0   18     1          b  [B
            0   18     2        off  I
            0   18     3        len  I
            7   18     4          c  I
           11   18     5  totalRead  I
           13   16     6          r  I
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      b     
      off   
      len   

  protected void inputNeeded();
    descriptor: ()V
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=0, locals=1, args_size=1
        start local 0 // jdk.jshell.execution.PipeInputStream this
         0: .line 91
            return
        end local 0 // jdk.jshell.execution.PipeInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Ljdk/jshell/execution/PipeInputStream;
    Exceptions:
      throws java.io.IOException

  private synchronized void write(int);
    descriptor: (I)V
    flags: (0x0022) ACC_PRIVATE, ACC_SYNCHRONIZED
    Code:
      stack=5, locals=6, args_size=2
        start local 0 // jdk.jshell.execution.PipeInputStream this
        start local 1 // int b
         0: .line 94
            aload 0 /* this */
            getfield jdk.jshell.execution.PipeInputStream.closed:Z
            ifeq 2
         1: .line 95
            new java.lang.IllegalStateException
            dup
            ldc "Already closed."
            invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 97
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.jshell.execution.PipeInputStream.end:I
            iconst_1
            iadd
            aload 0 /* this */
            getfield jdk.jshell.execution.PipeInputStream.buffer:[I
            arraylength
            irem
            istore 2 /* newEnd */
        start local 2 // int newEnd
         3: .line 98
            iload 2 /* newEnd */
            aload 0 /* this */
            getfield jdk.jshell.execution.PipeInputStream.start:I
            if_icmpne 17
         4: .line 100
            aload 0 /* this */
            getfield jdk.jshell.execution.PipeInputStream.buffer:[I
            arraylength
            iconst_2
            imul
            newarray 10
            astore 3 /* newBuffer */
        start local 3 // int[] newBuffer
         5: .line 101
            aload 0 /* this */
            getfield jdk.jshell.execution.PipeInputStream.end:I
            aload 0 /* this */
            getfield jdk.jshell.execution.PipeInputStream.start:I
            if_icmple 6
            aload 0 /* this */
            getfield jdk.jshell.execution.PipeInputStream.end:I
            goto 7
      StackMap locals: int int[]
      StackMap stack:
         6: aload 0 /* this */
            getfield jdk.jshell.execution.PipeInputStream.buffer:[I
            arraylength
      StackMap locals:
      StackMap stack: int
         7: aload 0 /* this */
            getfield jdk.jshell.execution.PipeInputStream.start:I
            isub
            istore 4 /* rightPart */
        start local 4 // int rightPart
         8: .line 102
            aload 0 /* this */
            getfield jdk.jshell.execution.PipeInputStream.end:I
            aload 0 /* this */
            getfield jdk.jshell.execution.PipeInputStream.start:I
            if_icmple 9
            iconst_0
            goto 10
      StackMap locals: int
      StackMap stack:
         9: aload 0 /* this */
            getfield jdk.jshell.execution.PipeInputStream.start:I
            iconst_1
            isub
      StackMap locals:
      StackMap stack: int
        10: istore 5 /* leftPart */
        start local 5 // int leftPart
        11: .line 103
            aload 0 /* this */
            getfield jdk.jshell.execution.PipeInputStream.buffer:[I
            aload 0 /* this */
            getfield jdk.jshell.execution.PipeInputStream.start:I
            aload 3 /* newBuffer */
            iconst_0
            iload 4 /* rightPart */
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
        12: .line 104
            aload 0 /* this */
            getfield jdk.jshell.execution.PipeInputStream.buffer:[I
            iconst_0
            aload 3 /* newBuffer */
            iload 4 /* rightPart */
            iload 5 /* leftPart */
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
        13: .line 105
            aload 0 /* this */
            aload 3 /* newBuffer */
            putfield jdk.jshell.execution.PipeInputStream.buffer:[I
        14: .line 106
            aload 0 /* this */
            iconst_0
            putfield jdk.jshell.execution.PipeInputStream.start:I
        15: .line 107
            aload 0 /* this */
            iload 4 /* rightPart */
            iload 5 /* leftPart */
            iadd
            putfield jdk.jshell.execution.PipeInputStream.end:I
        16: .line 108
            aload 0 /* this */
            getfield jdk.jshell.execution.PipeInputStream.end:I
            iconst_1
            iadd
            istore 2 /* newEnd */
        end local 5 // int leftPart
        end local 4 // int rightPart
        end local 3 // int[] newBuffer
        17: .line 110
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.jshell.execution.PipeInputStream.buffer:[I
            aload 0 /* this */
            getfield jdk.jshell.execution.PipeInputStream.end:I
            iload 1 /* b */
            iastore
        18: .line 111
            aload 0 /* this */
            iload 2 /* newEnd */
            putfield jdk.jshell.execution.PipeInputStream.end:I
        19: .line 112
            aload 0 /* this */
            invokevirtual java.lang.Object.notifyAll:()V
        20: .line 113
            return
        end local 2 // int newEnd
        end local 1 // int b
        end local 0 // jdk.jshell.execution.PipeInputStream this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0   21     0       this  Ljdk/jshell/execution/PipeInputStream;
            0   21     1          b  I
            3   21     2     newEnd  I
            5   17     3  newBuffer  [I
            8   17     4  rightPart  I
           11   17     5   leftPart  I
    MethodParameters:
      Name  Flags
      b     

  public synchronized void close();
    descriptor: ()V
    flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // jdk.jshell.execution.PipeInputStream this
         0: .line 117
            aload 0 /* this */
            iconst_1
            putfield jdk.jshell.execution.PipeInputStream.closed:Z
         1: .line 118
            aload 0 /* this */
            invokevirtual java.lang.Object.notifyAll:()V
         2: .line 119
            return
        end local 0 // jdk.jshell.execution.PipeInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Ljdk/jshell/execution/PipeInputStream;

  public java.io.OutputStream createOutput();
    descriptor: ()Ljava/io/OutputStream;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // jdk.jshell.execution.PipeInputStream this
         0: .line 122
            new jdk.jshell.execution.PipeInputStream$1
            dup
            aload 0 /* this */
            invokespecial jdk.jshell.execution.PipeInputStream$1.<init>:(Ljdk/jshell/execution/PipeInputStream;)V
            areturn
        end local 0 // jdk.jshell.execution.PipeInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Ljdk/jshell/execution/PipeInputStream;
}
SourceFile: "PipeInputStream.java"
NestMembers:
  jdk.jshell.execution.PipeInputStream$1
InnerClasses:
  jdk.jshell.execution.PipeInputStream$1