final class jdk.management.jfr.Stream implements java.io.Closeable
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.management.jfr.Stream
super_class: java.lang.Object
{
private final long identifier;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.io.BufferedInputStream inputStream;
descriptor: Ljava/io/BufferedInputStream;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final byte[] buffer;
descriptor: [B
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile long time;
descriptor: J
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
void <init>(java.io.InputStream, long, int);
descriptor: (Ljava/io/InputStream;JI)V
flags: (0x0000)
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.io.BufferedInputStream
dup
aload 1
ldc 50000
invokespecial java.io.BufferedInputStream.<init>:(Ljava/io/InputStream;I)V
putfield jdk.management.jfr.Stream.inputStream:Ljava/io/BufferedInputStream;
2: aload 0
lload 2
putfield jdk.management.jfr.Stream.identifier:J
3: aload 0
iload 4
newarray 8
putfield jdk.management.jfr.Stream.buffer:[B
4: return
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/management/jfr/Stream;
0 5 1 is Ljava/io/InputStream;
0 5 2 identifier J
0 5 4 blockSize I
MethodParameters:
Name Flags
is
identifier
blockSize
private void touch();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokestatic java.lang.System.currentTimeMillis:()J
putfield jdk.management.jfr.Stream.time:J
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/management/jfr/Stream;
public long getLastTouched();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.management.jfr.Stream.time:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/management/jfr/Stream;
public byte[] read();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual jdk.management.jfr.Stream.touch:()V
1: aload 0
getfield jdk.management.jfr.Stream.inputStream:Ljava/io/BufferedInputStream;
aload 0
getfield jdk.management.jfr.Stream.buffer:[B
invokevirtual java.io.BufferedInputStream.read:([B)I
istore 1
start local 1 2: iload 1
iconst_m1
if_icmpne 4
3: aconst_null
areturn
4: StackMap locals: int
StackMap stack:
iload 1
aload 0
getfield jdk.management.jfr.Stream.buffer:[B
arraylength
if_icmpeq 8
5: iload 1
newarray 8
astore 2
start local 2 6: aload 0
getfield jdk.management.jfr.Stream.buffer:[B
iconst_0
aload 2
iconst_0
iload 1
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
7: aload 2
areturn
end local 2 8: StackMap locals:
StackMap stack:
aload 0
getfield jdk.management.jfr.Stream.buffer:[B
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/management/jfr/Stream;
2 9 1 read I
6 8 2 smallerBuffer [B
Exceptions:
throws java.io.IOException
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.management.jfr.Stream.inputStream:Ljava/io/BufferedInputStream;
invokevirtual java.io.BufferedInputStream.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/management/jfr/Stream;
Exceptions:
throws java.io.IOException
public long getId();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.management.jfr.Stream.identifier:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/management/jfr/Stream;
}
SourceFile: "Stream.java"