public final class java.io.FileDescriptor
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: java.io.FileDescriptor
super_class: java.lang.Object
{
private int fd;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private long handle;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private java.io.Closeable parent;
descriptor: Ljava/io/Closeable;
flags: (0x0002) ACC_PRIVATE
private java.util.List<java.io.Closeable> otherParents;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Ljava/io/Closeable;>;
private boolean closed;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean append;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private jdk.internal.ref.PhantomCleanable<java.io.FileDescriptor> cleanup;
descriptor: Ljdk/internal/ref/PhantomCleanable;
flags: (0x0002) ACC_PRIVATE
Signature: Ljdk/internal/ref/PhantomCleanable<Ljava/io/FileDescriptor;>;
public static final java.io.FileDescriptor in;
descriptor: Ljava/io/FileDescriptor;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final java.io.FileDescriptor out;
descriptor: Ljava/io/FileDescriptor;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final java.io.FileDescriptor err;
descriptor: Ljava/io/FileDescriptor;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: invokestatic java.io.FileDescriptor.initIDs:()V
1: new java.io.FileDescriptor$1
dup
invokespecial java.io.FileDescriptor$1.<init>:()V
2: invokestatic jdk.internal.misc.SharedSecrets.setJavaIOFileDescriptorAccess:(Ljdk/internal/misc/JavaIOFileDescriptorAccess;)V
3: new java.io.FileDescriptor
dup
iconst_0
invokespecial java.io.FileDescriptor.<init>:(I)V
putstatic java.io.FileDescriptor.in:Ljava/io/FileDescriptor;
4: new java.io.FileDescriptor
dup
iconst_1
invokespecial java.io.FileDescriptor.<init>:(I)V
putstatic java.io.FileDescriptor.out:Ljava/io/FileDescriptor;
5: new java.io.FileDescriptor
dup
iconst_2
invokespecial java.io.FileDescriptor.<init>:(I)V
putstatic java.io.FileDescriptor.err:Ljava/io/FileDescriptor;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_m1
putfield java.io.FileDescriptor.fd:I
2: aload 0
ldc -1
putfield java.io.FileDescriptor.handle:J
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/io/FileDescriptor;
private void <init>(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iload 1
putfield java.io.FileDescriptor.fd:I
2: aload 0
iload 1
invokestatic java.io.FileDescriptor.getHandle:(I)J
putfield java.io.FileDescriptor.handle:J
3: aload 0
iload 1
invokestatic java.io.FileDescriptor.getAppend:(I)Z
putfield java.io.FileDescriptor.append:Z
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/io/FileDescriptor;
0 5 1 fd I
MethodParameters:
Name Flags
fd
public boolean valid();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield java.io.FileDescriptor.handle:J
ldc -1
lcmp
ifne 1
aload 0
getfield java.io.FileDescriptor.fd:I
iconst_m1
if_icmpne 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/io/FileDescriptor;
public native void sync();
descriptor: ()V
flags: (0x0101) ACC_PUBLIC, ACC_NATIVE
Exceptions:
throws java.io.SyncFailedException
private static native void initIDs();
descriptor: ()V
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
private static native long getHandle(int);
descriptor: (I)J
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
d
private static native boolean getAppend(int);
descriptor: (I)Z
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
fd
synchronized void set(int);
descriptor: (I)V
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 1
iconst_m1
if_icmpne 3
aload 0
getfield java.io.FileDescriptor.cleanup:Ljdk/internal/ref/PhantomCleanable;
ifnull 3
1: aload 0
getfield java.io.FileDescriptor.cleanup:Ljdk/internal/ref/PhantomCleanable;
invokevirtual jdk.internal.ref.PhantomCleanable.clear:()V
2: aload 0
aconst_null
putfield java.io.FileDescriptor.cleanup:Ljdk/internal/ref/PhantomCleanable;
3: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield java.io.FileDescriptor.fd:I
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/io/FileDescriptor;
0 5 1 fd I
MethodParameters:
Name Flags
fd
void setHandle(long);
descriptor: (J)V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: lload 1
ldc -1
lcmp
ifne 3
aload 0
getfield java.io.FileDescriptor.cleanup:Ljdk/internal/ref/PhantomCleanable;
ifnull 3
1: aload 0
getfield java.io.FileDescriptor.cleanup:Ljdk/internal/ref/PhantomCleanable;
invokevirtual jdk.internal.ref.PhantomCleanable.clear:()V
2: aload 0
aconst_null
putfield java.io.FileDescriptor.cleanup:Ljdk/internal/ref/PhantomCleanable;
3: StackMap locals:
StackMap stack:
aload 0
lload 1
putfield java.io.FileDescriptor.handle:J
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/io/FileDescriptor;
0 5 1 handle J
MethodParameters:
Name Flags
handle
synchronized void registerCleanup(jdk.internal.ref.PhantomCleanable<java.io.FileDescriptor>);
descriptor: (Ljdk/internal/ref/PhantomCleanable;)V
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "cleanable"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: aload 0
getfield java.io.FileDescriptor.cleanup:Ljdk/internal/ref/PhantomCleanable;
ifnull 3
2: aload 0
getfield java.io.FileDescriptor.cleanup:Ljdk/internal/ref/PhantomCleanable;
invokevirtual jdk.internal.ref.PhantomCleanable.clear:()V
3: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield java.io.FileDescriptor.cleanup:Ljdk/internal/ref/PhantomCleanable;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/io/FileDescriptor;
0 5 1 cleanable Ljdk/internal/ref/PhantomCleanable<Ljava/io/FileDescriptor;>;
Signature: (Ljdk/internal/ref/PhantomCleanable<Ljava/io/FileDescriptor;>;)V
MethodParameters:
Name Flags
cleanable
synchronized void unregisterCleanup();
descriptor: ()V
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield java.io.FileDescriptor.cleanup:Ljdk/internal/ref/PhantomCleanable;
ifnull 2
1: aload 0
getfield java.io.FileDescriptor.cleanup:Ljdk/internal/ref/PhantomCleanable;
invokevirtual jdk.internal.ref.PhantomCleanable.clear:()V
2: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield java.io.FileDescriptor.cleanup:Ljdk/internal/ref/PhantomCleanable;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/io/FileDescriptor;
synchronized void close();
descriptor: ()V
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.io.FileDescriptor.unregisterCleanup:()V
1: aload 0
invokevirtual java.io.FileDescriptor.close0:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/io/FileDescriptor;
Exceptions:
throws java.io.IOException
private native void close0();
descriptor: ()V
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
Exceptions:
throws java.io.IOException
synchronized void attach(java.io.Closeable);
descriptor: (Ljava/io/Closeable;)V
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield java.io.FileDescriptor.parent:Ljava/io/Closeable;
ifnonnull 3
1: aload 0
aload 1
putfield java.io.FileDescriptor.parent:Ljava/io/Closeable;
2: goto 9
StackMap locals:
StackMap stack:
3: aload 0
getfield java.io.FileDescriptor.otherParents:Ljava/util/List;
ifnonnull 8
4: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield java.io.FileDescriptor.otherParents:Ljava/util/List;
5: aload 0
getfield java.io.FileDescriptor.otherParents:Ljava/util/List;
aload 0
getfield java.io.FileDescriptor.parent:Ljava/io/Closeable;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
6: aload 0
getfield java.io.FileDescriptor.otherParents:Ljava/util/List;
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
7: goto 9
8: StackMap locals:
StackMap stack:
aload 0
getfield java.io.FileDescriptor.otherParents:Ljava/util/List;
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljava/io/FileDescriptor;
0 10 1 c Ljava/io/Closeable;
MethodParameters:
Name Flags
c
synchronized void closeAll(java.io.Closeable);
descriptor: (Ljava/io/Closeable;)V
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=2, locals=9, args_size=2
start local 0 start local 1 0: aload 0
getfield java.io.FileDescriptor.closed:Z
ifne 36
1: aload 0
iconst_1
putfield java.io.FileDescriptor.closed:Z
2: aconst_null
astore 2
start local 2 3: aconst_null
astore 3
aconst_null
astore 4
4: aload 0
getfield java.io.FileDescriptor.otherParents:Ljava/util/List;
ifnull 15
5: aload 0
getfield java.io.FileDescriptor.otherParents:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 14
StackMap locals: java.io.FileDescriptor java.io.Closeable java.io.IOException java.lang.Throwable java.lang.Throwable top java.util.Iterator
StackMap stack:
6: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.io.Closeable
astore 5
start local 5 7: aload 5
invokeinterface java.io.Closeable.close:()V
8: goto 14
StackMap locals: java.io.FileDescriptor java.io.Closeable java.io.IOException java.lang.Throwable java.lang.Throwable java.io.Closeable java.util.Iterator
StackMap stack: java.io.IOException
9: astore 7
start local 7 10: aload 2
ifnonnull 13
11: aload 7
astore 2
12: goto 14
13: StackMap locals: java.io.IOException
StackMap stack:
aload 2
aload 7
invokevirtual java.io.IOException.addSuppressed:(Ljava/lang/Throwable;)V
end local 7 end local 5 14: StackMap locals: java.io.FileDescriptor java.io.Closeable java.io.IOException java.lang.Throwable java.lang.Throwable top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
15: StackMap locals: java.io.FileDescriptor java.io.Closeable java.io.IOException java.lang.Throwable java.lang.Throwable
StackMap stack:
aload 1
ifnull 34
aload 1
16: invokeinterface java.io.Closeable.close:()V
goto 34
StackMap locals:
StackMap stack: java.lang.Throwable
17: astore 3
18: aload 1
ifnull 20
aload 1
19: invokeinterface java.io.Closeable.close:()V
StackMap locals:
StackMap stack:
20: aload 3
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
21: astore 4
aload 3
ifnonnull 22
aload 4
astore 3
goto 23
StackMap locals:
StackMap stack:
22: aload 3
aload 4
if_acmpeq 23
aload 3
aload 4
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
23: aload 3
athrow
StackMap locals: java.io.FileDescriptor java.io.Closeable java.io.IOException
StackMap stack: java.io.IOException
24: astore 3
start local 3 25: aload 2
ifnull 27
26: aload 3
aload 2
invokevirtual java.io.IOException.addSuppressed:(Ljava/lang/Throwable;)V
27: StackMap locals: java.io.IOException
StackMap stack:
aload 3
astore 2
end local 3 28: aload 2
ifnull 36
29: aload 2
athrow
30: StackMap locals: java.io.FileDescriptor java.io.Closeable java.io.IOException
StackMap stack: java.lang.Throwable
astore 8
31: aload 2
ifnull 33
32: aload 2
athrow
33: StackMap locals: java.io.FileDescriptor java.io.Closeable java.io.IOException top top top top top java.lang.Throwable
StackMap stack:
aload 8
athrow
34: StackMap locals: java.io.FileDescriptor java.io.Closeable java.io.IOException
StackMap stack:
aload 2
ifnull 36
35: aload 2
athrow
end local 2 36: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 37 0 this Ljava/io/FileDescriptor;
0 37 1 releaser Ljava/io/Closeable;
3 36 2 ioe Ljava/io/IOException;
7 14 5 referent Ljava/io/Closeable;
10 14 7 x Ljava/io/IOException;
25 28 3 ex Ljava/io/IOException;
Exception table:
from to target type
7 8 9 Class java.io.IOException
4 15 17 any
4 21 21 any
3 24 24 Class java.io.IOException
3 28 30 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
releaser
}
SourceFile: "FileDescriptor.java"
NestMembers:
java.io.FileDescriptor$1
InnerClasses:
java.io.FileDescriptor$1