class jdk.internal.org.jline.utils.PumpReader$InputStream extends java.io.InputStream
  minor version: 0
  major version: 59
  flags: flags: (0x0020) ACC_SUPER
  this_class: jdk.internal.org.jline.utils.PumpReader$InputStream
  super_class: java.io.InputStream
{
  private final jdk.internal.org.jline.utils.PumpReader reader;
    descriptor: Ljdk/internal/org/jline/utils/PumpReader;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final java.nio.charset.CharsetEncoder encoder;
    descriptor: Ljava/nio/charset/CharsetEncoder;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final java.nio.ByteBuffer buffer;
    descriptor: Ljava/nio/ByteBuffer;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private void <init>(jdk.internal.org.jline.utils.PumpReader, java.nio.charset.Charset);
    descriptor: (Ljdk/internal/org/jline/utils/PumpReader;Ljava/nio/charset/Charset;)V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=3, locals=3, args_size=3
        start local 0 // jdk.internal.org.jline.utils.PumpReader$InputStream this
        start local 1 // jdk.internal.org.jline.utils.PumpReader reader
        start local 2 // java.nio.charset.Charset charset
         0: .line 332
            aload 0 /* this */
            invokespecial java.io.InputStream.<init>:()V
         1: .line 333
            aload 0 /* this */
            aload 1 /* reader */
            putfield jdk.internal.org.jline.utils.PumpReader$InputStream.reader:Ljdk/internal/org/jline/utils/PumpReader;
         2: .line 334
            aload 0 /* this */
            aload 2 /* charset */
            invokevirtual java.nio.charset.Charset.newEncoder:()Ljava/nio/charset/CharsetEncoder;
         3: .line 335
            getstatic java.nio.charset.CodingErrorAction.REPLACE:Ljava/nio/charset/CodingErrorAction;
            invokevirtual java.nio.charset.CharsetEncoder.onUnmappableCharacter:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetEncoder;
         4: .line 336
            getstatic java.nio.charset.CodingErrorAction.REPLACE:Ljava/nio/charset/CodingErrorAction;
            invokevirtual java.nio.charset.CharsetEncoder.onMalformedInput:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetEncoder;
         5: .line 334
            putfield jdk.internal.org.jline.utils.PumpReader$InputStream.encoder:Ljava/nio/charset/CharsetEncoder;
         6: .line 337
            aload 0 /* this */
            aload 0 /* this */
            getfield jdk.internal.org.jline.utils.PumpReader$InputStream.encoder:Ljava/nio/charset/CharsetEncoder;
            invokevirtual java.nio.charset.CharsetEncoder.maxBytesPerChar:()F
            f2d
            invokestatic java.lang.Math.ceil:(D)D
            d2i
            invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
            putfield jdk.internal.org.jline.utils.PumpReader$InputStream.buffer:Ljava/nio/ByteBuffer;
         7: .line 340
            aload 0 /* this */
            getfield jdk.internal.org.jline.utils.PumpReader$InputStream.buffer:Ljava/nio/ByteBuffer;
            iconst_0
            invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/ByteBuffer;
            pop
         8: .line 341
            return
        end local 2 // java.nio.charset.Charset charset
        end local 1 // jdk.internal.org.jline.utils.PumpReader reader
        end local 0 // jdk.internal.org.jline.utils.PumpReader$InputStream this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    9     0     this  Ljdk/internal/org/jline/utils/PumpReader$InputStream;
            0    9     1   reader  Ljdk/internal/org/jline/utils/PumpReader;
            0    9     2  charset  Ljava/nio/charset/Charset;
    MethodParameters:
         Name  Flags
      reader   
      charset  

  public int available();
    descriptor: ()I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=1, args_size=1
        start local 0 // jdk.internal.org.jline.utils.PumpReader$InputStream this
         0: .line 345
            aload 0 /* this */
            getfield jdk.internal.org.jline.utils.PumpReader$InputStream.reader:Ljdk/internal/org/jline/utils/PumpReader;
            invokevirtual jdk.internal.org.jline.utils.PumpReader.available:()I
            i2d
            aload 0 /* this */
            getfield jdk.internal.org.jline.utils.PumpReader$InputStream.encoder:Ljava/nio/charset/CharsetEncoder;
            invokevirtual java.nio.charset.CharsetEncoder.averageBytesPerChar:()F
            f2d
            dmul
            d2i
            aload 0 /* this */
            getfield jdk.internal.org.jline.utils.PumpReader$InputStream.buffer:Ljava/nio/ByteBuffer;
            invokevirtual java.nio.ByteBuffer.remaining:()I
            iadd
            ireturn
        end local 0 // jdk.internal.org.jline.utils.PumpReader$InputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Ljdk/internal/org/jline/utils/PumpReader$InputStream;
    Exceptions:
      throws java.io.IOException

  public int read();
    descriptor: ()I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // jdk.internal.org.jline.utils.PumpReader$InputStream this
         0: .line 350
            aload 0 /* this */
            getfield jdk.internal.org.jline.utils.PumpReader$InputStream.buffer:Ljava/nio/ByteBuffer;
            invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
            ifne 2
            aload 0 /* this */
            invokevirtual jdk.internal.org.jline.utils.PumpReader$InputStream.readUsingBuffer:()Z
            ifne 2
         1: .line 351
            iconst_m1
            ireturn
         2: .line 354
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.internal.org.jline.utils.PumpReader$InputStream.buffer:Ljava/nio/ByteBuffer;
            invokevirtual java.nio.ByteBuffer.get:()B
            ireturn
        end local 0 // jdk.internal.org.jline.utils.PumpReader$InputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Ljdk/internal/org/jline/utils/PumpReader$InputStream;
    Exceptions:
      throws java.io.IOException

  private boolean readUsingBuffer();
    descriptor: ()Z
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // jdk.internal.org.jline.utils.PumpReader$InputStream this
         0: .line 358
            aload 0 /* this */
            getfield jdk.internal.org.jline.utils.PumpReader$InputStream.buffer:Ljava/nio/ByteBuffer;
            invokevirtual java.nio.ByteBuffer.clear:()Ljava/nio/ByteBuffer;
            pop
         1: .line 359
            aload 0 /* this */
            getfield jdk.internal.org.jline.utils.PumpReader$InputStream.reader:Ljdk/internal/org/jline/utils/PumpReader;
            aload 0 /* this */
            getfield jdk.internal.org.jline.utils.PumpReader$InputStream.encoder:Ljava/nio/charset/CharsetEncoder;
            aload 0 /* this */
            getfield jdk.internal.org.jline.utils.PumpReader$InputStream.buffer:Ljava/nio/ByteBuffer;
            invokevirtual jdk.internal.org.jline.utils.PumpReader.readBytes:(Ljava/nio/charset/CharsetEncoder;Ljava/nio/ByteBuffer;)V
         2: .line 360
            aload 0 /* this */
            getfield jdk.internal.org.jline.utils.PumpReader$InputStream.buffer:Ljava/nio/ByteBuffer;
            invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/ByteBuffer;
            pop
         3: .line 361
            aload 0 /* this */
            getfield jdk.internal.org.jline.utils.PumpReader$InputStream.buffer:Ljava/nio/ByteBuffer;
            invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
            ireturn
        end local 0 // jdk.internal.org.jline.utils.PumpReader$InputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    4     0  this  Ljdk/internal/org/jline/utils/PumpReader$InputStream;
    Exceptions:
      throws java.io.IOException

  private int copyFromBuffer(byte[], int, int);
    descriptor: ([BII)I
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=4, locals=4, args_size=4
        start local 0 // jdk.internal.org.jline.utils.PumpReader$InputStream this
        start local 1 // byte[] b
        start local 2 // int off
        start local 3 // int len
         0: .line 365
            iload 3 /* len */
            aload 0 /* this */
            getfield jdk.internal.org.jline.utils.PumpReader$InputStream.buffer:Ljava/nio/ByteBuffer;
            invokevirtual java.nio.ByteBuffer.remaining:()I
            invokestatic java.lang.Math.min:(II)I
            istore 3 /* len */
         1: .line 366
            aload 0 /* this */
            getfield jdk.internal.org.jline.utils.PumpReader$InputStream.buffer:Ljava/nio/ByteBuffer;
            aload 1 /* b */
            iload 2 /* off */
            iload 3 /* len */
            invokevirtual java.nio.ByteBuffer.get:([BII)Ljava/nio/ByteBuffer;
            pop
         2: .line 367
            iload 3 /* len */
            ireturn
        end local 3 // int len
        end local 2 // int off
        end local 1 // byte[] b
        end local 0 // jdk.internal.org.jline.utils.PumpReader$InputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Ljdk/internal/org/jline/utils/PumpReader$InputStream;
            0    3     1     b  [B
            0    3     2   off  I
            0    3     3   len  I
    MethodParameters:
      Name  Flags
      b     
      off   
      len   

  public int read(byte[], int, int);
    descriptor: ([BII)I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=6, locals=5, args_size=4
        start local 0 // jdk.internal.org.jline.utils.PumpReader$InputStream this
        start local 1 // byte[] b
        start local 2 // int off
        start local 3 // int len
         0: .line 372
            iload 3 /* len */
            ifne 2
         1: .line 373
            iconst_0
            ireturn
         2: .line 377
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.internal.org.jline.utils.PumpReader$InputStream.buffer:Ljava/nio/ByteBuffer;
            invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
            ifeq 9
         3: .line 378
            aload 0 /* this */
            aload 1 /* b */
            iload 2 /* off */
            iload 3 /* len */
            invokevirtual jdk.internal.org.jline.utils.PumpReader$InputStream.copyFromBuffer:([BII)I
            istore 4 /* read */
        start local 4 // int read
         4: .line 379
            iload 4 /* read */
            iload 3 /* len */
            if_icmpne 6
         5: .line 380
            iload 3 /* len */
            ireturn
         6: .line 383
      StackMap locals: int
      StackMap stack:
            iload 2 /* off */
            iload 4 /* read */
            iadd
            istore 2 /* off */
         7: .line 384
            iload 3 /* len */
            iload 4 /* read */
            isub
            istore 3 /* len */
         8: .line 385
            goto 10
        end local 4 // int read
         9: .line 386
      StackMap locals:
      StackMap stack:
            iconst_0
            istore 4 /* read */
        start local 4 // int read
        10: .line 390
      StackMap locals: int
      StackMap stack:
            iload 3 /* len */
            aload 0 /* this */
            getfield jdk.internal.org.jline.utils.PumpReader$InputStream.buffer:Ljava/nio/ByteBuffer;
            invokevirtual java.nio.ByteBuffer.capacity:()I
            if_icmplt 13
        11: .line 391
            iload 4 /* read */
            aload 0 /* this */
            getfield jdk.internal.org.jline.utils.PumpReader$InputStream.reader:Ljdk/internal/org/jline/utils/PumpReader;
            aload 0 /* this */
            getfield jdk.internal.org.jline.utils.PumpReader$InputStream.encoder:Ljava/nio/charset/CharsetEncoder;
            aload 1 /* b */
            iload 2 /* off */
            iload 3 /* len */
            invokevirtual jdk.internal.org.jline.utils.PumpReader.readBytes:(Ljava/nio/charset/CharsetEncoder;[BII)I
            iadd
            istore 4 /* read */
        12: .line 392
            goto 15
      StackMap locals:
      StackMap stack:
        13: aload 0 /* this */
            invokevirtual jdk.internal.org.jline.utils.PumpReader$InputStream.readUsingBuffer:()Z
            ifeq 15
        14: .line 393
            iload 4 /* read */
            aload 0 /* this */
            aload 1 /* b */
            iload 2 /* off */
            iload 3 /* len */
            invokevirtual jdk.internal.org.jline.utils.PumpReader$InputStream.copyFromBuffer:([BII)I
            iadd
            istore 4 /* read */
        15: .line 397
      StackMap locals:
      StackMap stack:
            iload 4 /* read */
            ifne 16
            iconst_m1
            goto 17
      StackMap locals:
      StackMap stack:
        16: iload 4 /* read */
      StackMap locals:
      StackMap stack: int
        17: ireturn
        end local 4 // int read
        end local 3 // int len
        end local 2 // int off
        end local 1 // byte[] b
        end local 0 // jdk.internal.org.jline.utils.PumpReader$InputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   18     0  this  Ljdk/internal/org/jline/utils/PumpReader$InputStream;
            0   18     1     b  [B
            0   18     2   off  I
            0   18     3   len  I
            4    9     4  read  I
           10   18     4  read  I
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      b     
      off   
      len   

  public void close();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // jdk.internal.org.jline.utils.PumpReader$InputStream this
         0: .line 402
            aload 0 /* this */
            getfield jdk.internal.org.jline.utils.PumpReader$InputStream.reader:Ljdk/internal/org/jline/utils/PumpReader;
            invokevirtual jdk.internal.org.jline.utils.PumpReader.close:()V
         1: .line 403
            return
        end local 0 // jdk.internal.org.jline.utils.PumpReader$InputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Ljdk/internal/org/jline/utils/PumpReader$InputStream;
    Exceptions:
      throws java.io.IOException
}
SourceFile: "PumpReader.java"
NestHost: jdk.internal.org.jline.utils.PumpReader
InnerClasses:
  private InputStream = jdk.internal.org.jline.utils.PumpReader$InputStream of jdk.internal.org.jline.utils.PumpReader