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 start local 1 0: aload 0
invokespecial java.io.InputStream.<init>:()V
1: aload 0
lconst_0
putfield jdk.jfr.internal.ChunkInputStream.unstreamedSize:J
2: 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 3: aload 1
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
start local 3 5: aload 3
invokevirtual jdk.jfr.internal.RepositoryChunk.use:()V
6: aload 2
aload 3
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
7: aload 0
dup
getfield jdk.jfr.internal.ChunkInputStream.unstreamedSize:J
aload 3
invokevirtual jdk.jfr.internal.RepositoryChunk.getSize:()J
ladd
putfield jdk.jfr.internal.ChunkInputStream.unstreamedSize:J
end local 3 8: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
9: aload 0
aload 2
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
putfield jdk.jfr.internal.ChunkInputStream.chunks:Ljava/util/Iterator;
10: aload 0
invokevirtual jdk.jfr.internal.ChunkInputStream.nextStream:()Z
pop
11: return
end local 2 end local 1 end local 0 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 0: aload 0
getfield jdk.jfr.internal.ChunkInputStream.unstreamedSize:J
lstore 1
start local 1 1: aload 0
getfield jdk.jfr.internal.ChunkInputStream.stream:Ljava/io/InputStream;
ifnull 3
2: lload 1
aload 0
getfield jdk.jfr.internal.ChunkInputStream.stream:Ljava/io/InputStream;
invokevirtual java.io.InputStream.available:()I
i2l
ladd
lstore 1
3: StackMap locals: long
StackMap stack:
lload 1
ldc 2147483647
lcmp
ifgt 4
lload 1
l2i
goto 5
StackMap locals:
StackMap stack:
4: ldc 2147483647
StackMap locals:
StackMap stack: int
5: ireturn
end local 1 end local 0 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 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: aload 0
dup
getfield jdk.jfr.internal.ChunkInputStream.unstreamedSize:J
aload 0
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: iconst_1
ireturn
end local 0 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 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