final class jdk.jfr.internal.ChunkInputStream extends java.io.InputStream
  minor version: 0
  major version: 59
  flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
  this_class: jdk.jfr.internal.ChunkInputStream
  super_class: java.io.InputStream
{
  private final java.util.Iterator<jdk.jfr.internal.RepositoryChunk> chunks;
    descriptor: Ljava/util/Iterator;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    Signature: Ljava/util/Iterator<Ljdk/jfr/internal/RepositoryChunk;>;

  private long unstreamedSize;
    descriptor: J
    flags: (0x0002) ACC_PRIVATE

  private jdk.jfr.internal.RepositoryChunk currentChunk;
    descriptor: Ljdk/jfr/internal/RepositoryChunk;
    flags: (0x0002) ACC_PRIVATE

  private java.io.InputStream stream;
    descriptor: Ljava/io/InputStream;
    flags: (0x0002) ACC_PRIVATE

  void <init>(java.util.List<jdk.jfr.internal.RepositoryChunk>);
    descriptor: (Ljava/util/List;)V
    flags: (0x0000) 
    Code:
      stack=5, locals=5, args_size=2
        start local 0 // jdk.jfr.internal.ChunkInputStream this
        start local 1 // java.util.List chunks
         0: .line 41
            aload 0 /* this */
            invokespecial java.io.InputStream.<init>:()V
         1: .line 37
            aload 0 /* this */
            lconst_0
            putfield jdk.jfr.internal.ChunkInputStream.unstreamedSize:J
         2: .line 42
            new java.util.ArrayList
            dup
            aload 1 /* chunks */
            invokeinterface java.util.List.size:()I
            invokespecial java.util.ArrayList.<init>:(I)V
            astore 2 /* l */
        start local 2 // java.util.List l
         3: .line 43
            aload 1 /* chunks */
            invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
            astore 4
            goto 8
      StackMap locals: jdk.jfr.internal.ChunkInputStream java.util.List java.util.List top java.util.Iterator
      StackMap stack:
         4: aload 4
            invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
            checkcast jdk.jfr.internal.RepositoryChunk
            astore 3 /* c */
        start local 3 // jdk.jfr.internal.RepositoryChunk c
         5: .line 44
            aload 3 /* c */
            invokevirtual jdk.jfr.internal.RepositoryChunk.use:()V
         6: .line 45
            aload 2 /* l */
            aload 3 /* c */
            invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
            pop
         7: .line 46
            aload 0 /* this */
            dup
            getfield jdk.jfr.internal.ChunkInputStream.unstreamedSize:J
            aload 3 /* c */
            invokevirtual jdk.jfr.internal.RepositoryChunk.getSize:()J
            ladd
            putfield jdk.jfr.internal.ChunkInputStream.unstreamedSize:J
        end local 3 // jdk.jfr.internal.RepositoryChunk c
         8: .line 43
      StackMap locals:
      StackMap stack:
            aload 4
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 4
         9: .line 49
            aload 0 /* this */
            aload 2 /* l */
            invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
            putfield jdk.jfr.internal.ChunkInputStream.chunks:Ljava/util/Iterator;
        10: .line 50
            aload 0 /* this */
            invokevirtual jdk.jfr.internal.ChunkInputStream.nextStream:()Z
            pop
        11: .line 51
            return
        end local 2 // java.util.List l
        end local 1 // java.util.List chunks
        end local 0 // jdk.jfr.internal.ChunkInputStream this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0   12     0    this  Ljdk/jfr/internal/ChunkInputStream;
            0   12     1  chunks  Ljava/util/List<Ljdk/jfr/internal/RepositoryChunk;>;
            3   12     2       l  Ljava/util/List<Ljdk/jfr/internal/RepositoryChunk;>;
            5    8     3       c  Ljdk/jfr/internal/RepositoryChunk;
    Exceptions:
      throws java.io.IOException
    Signature: (Ljava/util/List<Ljdk/jfr/internal/RepositoryChunk;>;)V
    MethodParameters:
        Name  Flags
      chunks  

  public int available();
    descriptor: ()I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=3, args_size=1
        start local 0 // jdk.jfr.internal.ChunkInputStream this
         0: .line 55
            aload 0 /* this */
            getfield jdk.jfr.internal.ChunkInputStream.unstreamedSize:J
            lstore 1 /* total */
        start local 1 // long total
         1: .line 56
            aload 0 /* this */
            getfield jdk.jfr.internal.ChunkInputStream.stream:Ljava/io/InputStream;
            ifnull 3
         2: .line 57
            lload 1 /* total */
            aload 0 /* this */
            getfield jdk.jfr.internal.ChunkInputStream.stream:Ljava/io/InputStream;
            invokevirtual java.io.InputStream.available:()I
            i2l
            ladd
            lstore 1 /* total */
         3: .line 59
      StackMap locals: long
      StackMap stack:
            lload 1 /* total */
            ldc 2147483647
            lcmp
            ifgt 4
            lload 1 /* total */
            l2i
            goto 5
      StackMap locals:
      StackMap stack:
         4: ldc 2147483647
      StackMap locals:
      StackMap stack: int
         5: ireturn
        end local 1 // long total
        end local 0 // jdk.jfr.internal.ChunkInputStream this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    6     0   this  Ljdk/jfr/internal/ChunkInputStream;
            1    6     1  total  J
    Exceptions:
      throws java.io.IOException

  private boolean nextStream();
    descriptor: ()Z
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=5, locals=1, args_size=1
        start local 0 // jdk.jfr.internal.ChunkInputStream this
         0: .line 63
            aload 0 /* this */
            invokevirtual jdk.jfr.internal.ChunkInputStream.nextChunk:()Z
            ifne 2
         1: .line 64
            iconst_0
            ireturn
         2: .line 67
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            new java.io.BufferedInputStream
            dup
            aload 0 /* this */
            getfield jdk.jfr.internal.ChunkInputStream.currentChunk:Ljdk/jfr/internal/RepositoryChunk;
            invokevirtual jdk.jfr.internal.RepositoryChunk.getFile:()Ljdk/jfr/internal/SecuritySupport$SafePath;
            invokestatic jdk.jfr.internal.SecuritySupport.newFileInputStream:(Ljdk/jfr/internal/SecuritySupport$SafePath;)Ljava/io/InputStream;
            invokespecial java.io.BufferedInputStream.<init>:(Ljava/io/InputStream;)V
            putfield jdk.jfr.internal.ChunkInputStream.stream:Ljava/io/InputStream;
         3: .line 68
            aload 0 /* this */
            dup
            getfield jdk.jfr.internal.ChunkInputStream.unstreamedSize:J
            aload 0 /* this */
            getfield jdk.jfr.internal.ChunkInputStream.currentChunk:Ljdk/jfr/internal/RepositoryChunk;
            invokevirtual jdk.jfr.internal.RepositoryChunk.getSize:()J
            lsub
            putfield jdk.jfr.internal.ChunkInputStream.unstreamedSize:J
         4: .line 69
            iconst_1
            ireturn
        end local 0 // jdk.jfr.internal.ChunkInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    5     0  this  Ljdk/jfr/internal/ChunkInputStream;
    Exceptions:
      throws java.io.IOException

  private boolean nextChunk();
    descriptor: ()Z
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // jdk.jfr.internal.ChunkInputStream this
         0: .line 73
            aload 0 /* this */
            getfield jdk.jfr.internal.ChunkInputStream.chunks:Ljava/util/Iterator;
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 2
         1: .line 74
            iconst_0
            ireturn
         2: .line 76
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 0 /* this */
            getfield jdk.jfr.internal.ChunkInputStream.chunks:Ljava/util/Iterator;
            invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
            checkcast jdk.jfr.internal.RepositoryChunk
            putfield jdk.jfr.internal.ChunkInputStream.currentChunk:Ljdk/jfr/internal/RepositoryChunk;
         3: .line 77
            iconst_1
            ireturn
        end local 0 // jdk.jfr.internal.ChunkInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    4     0  this  Ljdk/jfr/internal/ChunkInputStream;

  public int read();
    descriptor: ()I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=1
        start local 0 // jdk.jfr.internal.ChunkInputStream this
         0: .line 83
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.jfr.internal.ChunkInputStream.stream:Ljava/io/InputStream;
            ifnull 8
         1: .line 84
            aload 0 /* this */
            getfield jdk.jfr.internal.ChunkInputStream.stream:Ljava/io/InputStream;
            invokevirtual java.io.InputStream.read:()I
            istore 1 /* r */
        start local 1 // int r
         2: .line 85
            iload 1 /* r */
            iconst_m1
            if_icmpeq 4
         3: .line 86
            iload 1 /* r */
            ireturn
         4: .line 88
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            getfield jdk.jfr.internal.ChunkInputStream.stream:Ljava/io/InputStream;
            invokevirtual java.io.InputStream.close:()V
         5: .line 89
            aload 0 /* this */
            getfield jdk.jfr.internal.ChunkInputStream.currentChunk:Ljdk/jfr/internal/RepositoryChunk;
            invokevirtual jdk.jfr.internal.RepositoryChunk.release:()V
         6: .line 90
            aload 0 /* this */
            aconst_null
            putfield jdk.jfr.internal.ChunkInputStream.stream:Ljava/io/InputStream;
         7: .line 91
            aload 0 /* this */
            aconst_null
            putfield jdk.jfr.internal.ChunkInputStream.currentChunk:Ljdk/jfr/internal/RepositoryChunk;
        end local 1 // int r
         8: .line 93
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokevirtual jdk.jfr.internal.ChunkInputStream.nextStream:()Z
            ifne 0
         9: .line 94
            iconst_m1
            ireturn
        end local 0 // jdk.jfr.internal.ChunkInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   10     0  this  Ljdk/jfr/internal/ChunkInputStream;
            2    8     1     r  I
    Exceptions:
      throws java.io.IOException

  public void close();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // jdk.jfr.internal.ChunkInputStream this
         0: .line 101
            aload 0 /* this */
            getfield jdk.jfr.internal.ChunkInputStream.stream:Ljava/io/InputStream;
            ifnull 8
         1: .line 102
            aload 0 /* this */
            getfield jdk.jfr.internal.ChunkInputStream.stream:Ljava/io/InputStream;
            invokevirtual java.io.InputStream.close:()V
         2: .line 103
            aload 0 /* this */
            aconst_null
            putfield jdk.jfr.internal.ChunkInputStream.stream:Ljava/io/InputStream;
         3: .line 105
            goto 8
         4: .line 106
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.jfr.internal.ChunkInputStream.currentChunk:Ljdk/jfr/internal/RepositoryChunk;
            invokevirtual jdk.jfr.internal.RepositoryChunk.release:()V
         5: .line 107
            aload 0 /* this */
            aconst_null
            putfield jdk.jfr.internal.ChunkInputStream.currentChunk:Ljdk/jfr/internal/RepositoryChunk;
         6: .line 108
            aload 0 /* this */
            invokevirtual jdk.jfr.internal.ChunkInputStream.nextChunk:()Z
            ifne 8
         7: .line 109
            return
         8: .line 105
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.jfr.internal.ChunkInputStream.currentChunk:Ljdk/jfr/internal/RepositoryChunk;
            ifnonnull 4
         9: .line 112
            return
        end local 0 // jdk.jfr.internal.ChunkInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   10     0  this  Ljdk/jfr/internal/ChunkInputStream;
    Exceptions:
      throws java.io.IOException

  protected void finalize();
    descriptor: ()V
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // jdk.jfr.internal.ChunkInputStream this
         0: .line 117
            aload 0 /* this */
            invokespecial java.lang.Object.finalize:()V
         1: .line 118
            aload 0 /* this */
            invokevirtual jdk.jfr.internal.ChunkInputStream.close:()V
         2: .line 119
            return
        end local 0 // jdk.jfr.internal.ChunkInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Ljdk/jfr/internal/ChunkInputStream;
    Exceptions:
      throws java.lang.Throwable
}
SourceFile: "ChunkInputStream.java"
InnerClasses:
  public final SafePath = jdk.jfr.internal.SecuritySupport$SafePath of jdk.jfr.internal.SecuritySupport