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 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=3, locals=5, args_size=2
        start local 0 // jdk.jfr.internal.ChunkInputStream this
        start local 1 // java.util.List chunks
         0: .line 40
            aload 0 /* this */
            invokespecial java.io.InputStream.<init>:()V
         1: .line 41
            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
         2: .line 42
            aload 1 /* chunks */
            invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
            astore 4
            goto 6
      StackMap locals: jdk.jfr.internal.ChunkInputStream java.util.List java.util.List top java.util.Iterator
      StackMap stack:
         3: 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
         4: .line 43
            aload 3 /* c */
            invokevirtual jdk.jfr.internal.RepositoryChunk.use:()V
         5: .line 44
            aload 2 /* l */
            aload 3 /* c */
            invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
            pop
        end local 3 // jdk.jfr.internal.RepositoryChunk c
         6: .line 42
      StackMap locals:
      StackMap stack:
            aload 4
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 3
         7: .line 47
            aload 0 /* this */
            aload 2 /* l */
            invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
            putfield jdk.jfr.internal.ChunkInputStream.chunks:Ljava/util/Iterator;
         8: .line 48
            aload 0 /* this */
            invokevirtual jdk.jfr.internal.ChunkInputStream.nextStream:()Z
            pop
         9: .line 49
            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   10     0    this  Ljdk/jfr/internal/ChunkInputStream;
            0   10     1  chunks  Ljava/util/List<Ljdk/jfr/internal/RepositoryChunk;>;
            2   10     2       l  Ljava/util/List<Ljdk/jfr/internal/RepositoryChunk;>;
            4    6     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=1, locals=1, args_size=1
        start local 0 // jdk.jfr.internal.ChunkInputStream this
         0: .line 53
            aload 0 /* this */
            getfield jdk.jfr.internal.ChunkInputStream.stream:Ljava/io/InputStream;
            ifnull 2
         1: .line 54
            aload 0 /* this */
            getfield jdk.jfr.internal.ChunkInputStream.stream:Ljava/io/InputStream;
            invokevirtual java.io.InputStream.available:()I
            ireturn
         2: .line 56
      StackMap locals:
      StackMap stack:
            iconst_0
            ireturn
        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.io.IOException

  private boolean nextStream();
    descriptor: ()Z
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=4, locals=1, args_size=1
        start local 0 // jdk.jfr.internal.ChunkInputStream this
         0: .line 60
            aload 0 /* this */
            invokevirtual jdk.jfr.internal.ChunkInputStream.nextChunk:()Z
            ifne 2
         1: .line 61
            iconst_0
            ireturn
         2: .line 64
      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 65
            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;
    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 69
            aload 0 /* this */
            getfield jdk.jfr.internal.ChunkInputStream.chunks:Ljava/util/Iterator;
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 2
         1: .line 70
            iconst_0
            ireturn
         2: .line 72
      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 73
            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 79
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.jfr.internal.ChunkInputStream.stream:Ljava/io/InputStream;
            ifnull 8
         1: .line 80
            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 81
            iload 1 /* r */
            iconst_m1
            if_icmpeq 4
         3: .line 82
            iload 1 /* r */
            ireturn
         4: .line 84
      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 85
            aload 0 /* this */
            getfield jdk.jfr.internal.ChunkInputStream.currentChunk:Ljdk/jfr/internal/RepositoryChunk;
            invokevirtual jdk.jfr.internal.RepositoryChunk.release:()V
         6: .line 86
            aload 0 /* this */
            aconst_null
            putfield jdk.jfr.internal.ChunkInputStream.stream:Ljava/io/InputStream;
         7: .line 87
            aload 0 /* this */
            aconst_null
            putfield jdk.jfr.internal.ChunkInputStream.currentChunk:Ljdk/jfr/internal/RepositoryChunk;
        end local 1 // int r
         8: .line 89
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokevirtual jdk.jfr.internal.ChunkInputStream.nextStream:()Z
            ifne 0
         9: .line 90
            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 97
            aload 0 /* this */
            getfield jdk.jfr.internal.ChunkInputStream.stream:Ljava/io/InputStream;
            ifnull 8
         1: .line 98
            aload 0 /* this */
            getfield jdk.jfr.internal.ChunkInputStream.stream:Ljava/io/InputStream;
            invokevirtual java.io.InputStream.close:()V
         2: .line 99
            aload 0 /* this */
            aconst_null
            putfield jdk.jfr.internal.ChunkInputStream.stream:Ljava/io/InputStream;
         3: .line 101
            goto 8
         4: .line 102
      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 103
            aload 0 /* this */
            aconst_null
            putfield jdk.jfr.internal.ChunkInputStream.currentChunk:Ljdk/jfr/internal/RepositoryChunk;
         6: .line 104
            aload 0 /* this */
            invokevirtual jdk.jfr.internal.ChunkInputStream.nextChunk:()Z
            ifne 8
         7: .line 105
            return
         8: .line 101
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.jfr.internal.ChunkInputStream.currentChunk:Ljdk/jfr/internal/RepositoryChunk;
            ifnonnull 4
         9: .line 108
            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 113
            aload 0 /* this */
            invokespecial java.lang.Object.finalize:()V
         1: .line 114
            aload 0 /* this */
            invokevirtual jdk.jfr.internal.ChunkInputStream.close:()V
         2: .line 115
            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