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 start local 1 0: aload 0
invokespecial java.io.InputStream.<init>:()V
1: new java.util.ArrayList
dup
aload 1
invokeinterface java.util.List.size:()I
invokespecial java.util.ArrayList.<init>:(I)V
astore 2
start local 2 2: aload 1
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
start local 3 4: aload 3
invokevirtual jdk.jfr.internal.RepositoryChunk.use:()V
5: aload 2
aload 3
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 3 6: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
7: aload 0
aload 2
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
putfield jdk.jfr.internal.ChunkInputStream.chunks:Ljava/util/Iterator;
8: aload 0
invokevirtual jdk.jfr.internal.ChunkInputStream.nextStream:()Z
pop
9: return
end local 2 end local 1 end local 0 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 0: aload 0
getfield jdk.jfr.internal.ChunkInputStream.stream:Ljava/io/InputStream;
ifnull 2
1: aload 0
getfield jdk.jfr.internal.ChunkInputStream.stream:Ljava/io/InputStream;
invokevirtual java.io.InputStream.available:()I
ireturn
2: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 0 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 0: aload 0
invokevirtual jdk.jfr.internal.ChunkInputStream.nextChunk:()Z
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
new java.io.BufferedInputStream
dup
aload 0
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: iconst_1
ireturn
end local 0 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 0: aload 0
getfield jdk.jfr.internal.ChunkInputStream.chunks:Ljava/util/Iterator;
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
aload 0
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: iconst_1
ireturn
end local 0 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 0: StackMap locals:
StackMap stack:
aload 0
getfield jdk.jfr.internal.ChunkInputStream.stream:Ljava/io/InputStream;
ifnull 8
1: aload 0
getfield jdk.jfr.internal.ChunkInputStream.stream:Ljava/io/InputStream;
invokevirtual java.io.InputStream.read:()I
istore 1
start local 1 2: iload 1
iconst_m1
if_icmpeq 4
3: iload 1
ireturn
4: StackMap locals: int
StackMap stack:
aload 0
getfield jdk.jfr.internal.ChunkInputStream.stream:Ljava/io/InputStream;
invokevirtual java.io.InputStream.close:()V
5: aload 0
getfield jdk.jfr.internal.ChunkInputStream.currentChunk:Ljdk/jfr/internal/RepositoryChunk;
invokevirtual jdk.jfr.internal.RepositoryChunk.release:()V
6: aload 0
aconst_null
putfield jdk.jfr.internal.ChunkInputStream.stream:Ljava/io/InputStream;
7: aload 0
aconst_null
putfield jdk.jfr.internal.ChunkInputStream.currentChunk:Ljdk/jfr/internal/RepositoryChunk;
end local 1 8: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.jfr.internal.ChunkInputStream.nextStream:()Z
ifne 0
9: iconst_m1
ireturn
end local 0 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 0: aload 0
getfield jdk.jfr.internal.ChunkInputStream.stream:Ljava/io/InputStream;
ifnull 8
1: aload 0
getfield jdk.jfr.internal.ChunkInputStream.stream:Ljava/io/InputStream;
invokevirtual java.io.InputStream.close:()V
2: aload 0
aconst_null
putfield jdk.jfr.internal.ChunkInputStream.stream:Ljava/io/InputStream;
3: goto 8
4: StackMap locals:
StackMap stack:
aload 0
getfield jdk.jfr.internal.ChunkInputStream.currentChunk:Ljdk/jfr/internal/RepositoryChunk;
invokevirtual jdk.jfr.internal.RepositoryChunk.release:()V
5: aload 0
aconst_null
putfield jdk.jfr.internal.ChunkInputStream.currentChunk:Ljdk/jfr/internal/RepositoryChunk;
6: aload 0
invokevirtual jdk.jfr.internal.ChunkInputStream.nextChunk:()Z
ifne 8
7: return
8: StackMap locals:
StackMap stack:
aload 0
getfield jdk.jfr.internal.ChunkInputStream.currentChunk:Ljdk/jfr/internal/RepositoryChunk;
ifnonnull 4
9: return
end local 0 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 0: aload 0
invokespecial java.lang.Object.finalize:()V
1: aload 0
invokevirtual jdk.jfr.internal.ChunkInputStream.close:()V
2: return
end local 0 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