class sun.nio.fs.UnixChannelFactory
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.nio.fs.UnixChannelFactory
super_class: java.lang.Object
{
private static final jdk.internal.misc.JavaIOFileDescriptorAccess fdAccess;
descriptor: Ljdk/internal/misc/JavaIOFileDescriptorAccess;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic jdk.internal.misc.SharedSecrets.getJavaIOFileDescriptorAccess:()Ljdk/internal/misc/JavaIOFileDescriptorAccess;
1: putstatic sun.nio.fs.UnixChannelFactory.fdAccess:Ljdk/internal/misc/JavaIOFileDescriptorAccess;
2: return
LocalVariableTable:
Start End Slot Name Signature
protected void <init>();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/fs/UnixChannelFactory;
static java.nio.channels.FileChannel newFileChannel(int, java.lang.String, boolean, boolean);
descriptor: (ILjava/lang/String;ZZ)Ljava/nio/channels/FileChannel;
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new java.io.FileDescriptor
dup
invokespecial java.io.FileDescriptor.<init>:()V
astore 4
start local 4 1: getstatic sun.nio.fs.UnixChannelFactory.fdAccess:Ljdk/internal/misc/JavaIOFileDescriptorAccess;
aload 4
iload 0
invokeinterface jdk.internal.misc.JavaIOFileDescriptorAccess.set:(Ljava/io/FileDescriptor;I)V
2: aload 4
aload 1
iload 2
iload 3
iconst_0
aconst_null
invokestatic sun.nio.ch.FileChannelImpl.open:(Ljava/io/FileDescriptor;Ljava/lang/String;ZZZLjava/lang/Object;)Ljava/nio/channels/FileChannel;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 fd I
0 3 1 path Ljava/lang/String;
0 3 2 reading Z
0 3 3 writing Z
1 3 4 fdObj Ljava/io/FileDescriptor;
MethodParameters:
Name Flags
fd
path
reading
writing
static java.nio.channels.FileChannel newFileChannel(int, sun.nio.fs.UnixPath, java.lang.String, java.util.Set<? extends java.nio.file.OpenOption>, int);
descriptor: (ILsun/nio/fs/UnixPath;Ljava/lang/String;Ljava/util/Set;I)Ljava/nio/channels/FileChannel;
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=7, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 3
invokestatic sun.nio.fs.UnixChannelFactory$Flags.toFlags:(Ljava/util/Set;)Lsun/nio/fs/UnixChannelFactory$Flags;
astore 5
start local 5 1: aload 5
getfield sun.nio.fs.UnixChannelFactory$Flags.read:Z
ifne 6
aload 5
getfield sun.nio.fs.UnixChannelFactory$Flags.write:Z
ifne 6
2: aload 5
getfield sun.nio.fs.UnixChannelFactory$Flags.append:Z
ifeq 5
3: aload 5
iconst_1
putfield sun.nio.fs.UnixChannelFactory$Flags.write:Z
4: goto 6
5: StackMap locals: sun.nio.fs.UnixChannelFactory$Flags
StackMap stack:
aload 5
iconst_1
putfield sun.nio.fs.UnixChannelFactory$Flags.read:Z
6: StackMap locals:
StackMap stack:
aload 5
getfield sun.nio.fs.UnixChannelFactory$Flags.read:Z
ifeq 8
aload 5
getfield sun.nio.fs.UnixChannelFactory$Flags.append:Z
ifeq 8
7: new java.lang.IllegalArgumentException
dup
ldc "READ + APPEND not allowed"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
aload 5
getfield sun.nio.fs.UnixChannelFactory$Flags.append:Z
ifeq 10
aload 5
getfield sun.nio.fs.UnixChannelFactory$Flags.truncateExisting:Z
ifeq 10
9: new java.lang.IllegalArgumentException
dup
ldc "APPEND + TRUNCATE_EXISTING not allowed"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals:
StackMap stack:
iload 0
aload 1
aload 2
aload 5
iload 4
invokestatic sun.nio.fs.UnixChannelFactory.open:(ILsun/nio/fs/UnixPath;Ljava/lang/String;Lsun/nio/fs/UnixChannelFactory$Flags;I)Ljava/io/FileDescriptor;
astore 6
start local 6 11: aload 6
aload 1
invokevirtual sun.nio.fs.UnixPath.toString:()Ljava/lang/String;
aload 5
getfield sun.nio.fs.UnixChannelFactory$Flags.read:Z
12: aload 5
getfield sun.nio.fs.UnixChannelFactory$Flags.write:Z
aload 5
getfield sun.nio.fs.UnixChannelFactory$Flags.direct:Z
aconst_null
13: invokestatic sun.nio.ch.FileChannelImpl.open:(Ljava/io/FileDescriptor;Ljava/lang/String;ZZZLjava/lang/Object;)Ljava/nio/channels/FileChannel;
areturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 dfd I
0 14 1 path Lsun/nio/fs/UnixPath;
0 14 2 pathForPermissionCheck Ljava/lang/String;
0 14 3 options Ljava/util/Set<+Ljava/nio/file/OpenOption;>;
0 14 4 mode I
1 14 5 flags Lsun/nio/fs/UnixChannelFactory$Flags;
11 14 6 fdObj Ljava/io/FileDescriptor;
Exceptions:
throws sun.nio.fs.UnixException
Signature: (ILsun/nio/fs/UnixPath;Ljava/lang/String;Ljava/util/Set<+Ljava/nio/file/OpenOption;>;I)Ljava/nio/channels/FileChannel;
MethodParameters:
Name Flags
dfd
path
pathForPermissionCheck
options
mode
static java.nio.channels.FileChannel newFileChannel(sun.nio.fs.UnixPath, java.util.Set<? extends java.nio.file.OpenOption>, int);
descriptor: (Lsun/nio/fs/UnixPath;Ljava/util/Set;I)Ljava/nio/channels/FileChannel;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iconst_m1
aload 0
aconst_null
aload 1
iload 2
invokestatic sun.nio.fs.UnixChannelFactory.newFileChannel:(ILsun/nio/fs/UnixPath;Ljava/lang/String;Ljava/util/Set;I)Ljava/nio/channels/FileChannel;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 path Lsun/nio/fs/UnixPath;
0 1 1 options Ljava/util/Set<+Ljava/nio/file/OpenOption;>;
0 1 2 mode I
Exceptions:
throws sun.nio.fs.UnixException
Signature: (Lsun/nio/fs/UnixPath;Ljava/util/Set<+Ljava/nio/file/OpenOption;>;I)Ljava/nio/channels/FileChannel;
MethodParameters:
Name Flags
path
options
mode
static java.nio.channels.AsynchronousFileChannel newAsynchronousFileChannel(sun.nio.fs.UnixPath, java.util.Set<? extends java.nio.file.OpenOption>, int, sun.nio.ch.ThreadPool);
descriptor: (Lsun/nio/fs/UnixPath;Ljava/util/Set;ILsun/nio/ch/ThreadPool;)Ljava/nio/channels/AsynchronousFileChannel;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
invokestatic sun.nio.fs.UnixChannelFactory$Flags.toFlags:(Ljava/util/Set;)Lsun/nio/fs/UnixChannelFactory$Flags;
astore 4
start local 4 1: aload 4
getfield sun.nio.fs.UnixChannelFactory$Flags.read:Z
ifne 3
aload 4
getfield sun.nio.fs.UnixChannelFactory$Flags.write:Z
ifne 3
2: aload 4
iconst_1
putfield sun.nio.fs.UnixChannelFactory$Flags.read:Z
3: StackMap locals: sun.nio.fs.UnixChannelFactory$Flags
StackMap stack:
aload 4
getfield sun.nio.fs.UnixChannelFactory$Flags.append:Z
ifeq 5
4: new java.lang.UnsupportedOperationException
dup
ldc "APPEND not allowed"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
iconst_m1
aload 0
aconst_null
aload 4
iload 2
invokestatic sun.nio.fs.UnixChannelFactory.open:(ILsun/nio/fs/UnixPath;Ljava/lang/String;Lsun/nio/fs/UnixChannelFactory$Flags;I)Ljava/io/FileDescriptor;
astore 5
start local 5 6: aload 5
aload 4
getfield sun.nio.fs.UnixChannelFactory$Flags.read:Z
aload 4
getfield sun.nio.fs.UnixChannelFactory$Flags.write:Z
aload 3
invokestatic sun.nio.ch.SimpleAsynchronousFileChannelImpl.open:(Ljava/io/FileDescriptor;ZZLsun/nio/ch/ThreadPool;)Ljava/nio/channels/AsynchronousFileChannel;
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 path Lsun/nio/fs/UnixPath;
0 7 1 options Ljava/util/Set<+Ljava/nio/file/OpenOption;>;
0 7 2 mode I
0 7 3 pool Lsun/nio/ch/ThreadPool;
1 7 4 flags Lsun/nio/fs/UnixChannelFactory$Flags;
6 7 5 fdObj Ljava/io/FileDescriptor;
Exceptions:
throws sun.nio.fs.UnixException
Signature: (Lsun/nio/fs/UnixPath;Ljava/util/Set<+Ljava/nio/file/OpenOption;>;ILsun/nio/ch/ThreadPool;)Ljava/nio/channels/AsynchronousFileChannel;
MethodParameters:
Name Flags
path
options
mode
pool
protected static java.io.FileDescriptor open(int, sun.nio.fs.UnixPath, java.lang.String, sun.nio.fs.UnixChannelFactory$Flags, int);
descriptor: (ILsun/nio/fs/UnixPath;Ljava/lang/String;Lsun/nio/fs/UnixChannelFactory$Flags;I)Ljava/io/FileDescriptor;
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=5, locals=10, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 3
getfield sun.nio.fs.UnixChannelFactory$Flags.read:Z
ifeq 3
aload 3
getfield sun.nio.fs.UnixChannelFactory$Flags.write:Z
ifeq 3
1: iconst_2
istore 5
start local 5 2: goto 6
end local 5 3: StackMap locals:
StackMap stack:
aload 3
getfield sun.nio.fs.UnixChannelFactory$Flags.write:Z
ifeq 4
iconst_1
goto 5
StackMap locals:
StackMap stack:
4: iconst_0
StackMap locals:
StackMap stack: int
5: istore 5
start local 5 6: StackMap locals: int
StackMap stack:
aload 3
getfield sun.nio.fs.UnixChannelFactory$Flags.write:Z
ifeq 21
7: aload 3
getfield sun.nio.fs.UnixChannelFactory$Flags.truncateExisting:Z
ifeq 9
8: iload 5
sipush 512
ior
istore 5
9: StackMap locals:
StackMap stack:
aload 3
getfield sun.nio.fs.UnixChannelFactory$Flags.append:Z
ifeq 11
10: iload 5
sipush 1024
ior
istore 5
11: StackMap locals:
StackMap stack:
aload 3
getfield sun.nio.fs.UnixChannelFactory$Flags.createNew:Z
ifeq 19
12: aload 1
invokevirtual sun.nio.fs.UnixPath.asByteArray:()[B
astore 6
start local 6 13: aload 6
aload 6
arraylength
iconst_1
isub
baload
bipush 46
if_icmpne 17
14: aload 6
arraylength
iconst_1
if_icmpeq 16
15: aload 6
aload 6
arraylength
iconst_2
isub
baload
bipush 47
if_icmpne 17
16: StackMap locals: byte[]
StackMap stack:
new sun.nio.fs.UnixException
dup
bipush 17
invokespecial sun.nio.fs.UnixException.<init>:(I)V
athrow
17: StackMap locals:
StackMap stack:
iload 5
sipush 192
ior
istore 5
end local 6 18: goto 21
19: StackMap locals:
StackMap stack:
aload 3
getfield sun.nio.fs.UnixChannelFactory$Flags.create:Z
ifeq 21
20: iload 5
bipush 64
ior
istore 5
21: StackMap locals:
StackMap stack:
iconst_1
istore 6
start local 6 22: aload 3
getfield sun.nio.fs.UnixChannelFactory$Flags.createNew:Z
ifne 26
aload 3
getfield sun.nio.fs.UnixChannelFactory$Flags.noFollowLinks:Z
ifne 23
aload 3
getfield sun.nio.fs.UnixChannelFactory$Flags.deleteOnClose:Z
ifeq 26
23: StackMap locals: int
StackMap stack:
aload 3
getfield sun.nio.fs.UnixChannelFactory$Flags.deleteOnClose:Z
pop
24: iconst_0
istore 6
25: iload 5
ldc 131072
ior
istore 5
26: StackMap locals:
StackMap stack:
aload 3
getfield sun.nio.fs.UnixChannelFactory$Flags.dsync:Z
ifeq 28
27: iload 5
sipush 4096
ior
istore 5
28: StackMap locals:
StackMap stack:
aload 3
getfield sun.nio.fs.UnixChannelFactory$Flags.sync:Z
ifeq 30
29: iload 5
ldc 1052672
ior
istore 5
30: StackMap locals:
StackMap stack:
aload 3
getfield sun.nio.fs.UnixChannelFactory$Flags.direct:Z
ifeq 32
31: iload 5
sipush 16384
ior
istore 5
32: StackMap locals:
StackMap stack:
invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 7
start local 7 33: aload 7
ifnull 42
34: aload 2
ifnonnull 36
35: aload 1
invokevirtual sun.nio.fs.UnixPath.getPathForPermissionCheck:()Ljava/lang/String;
astore 2
36: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 3
getfield sun.nio.fs.UnixChannelFactory$Flags.read:Z
ifeq 38
37: aload 7
aload 2
invokevirtual java.lang.SecurityManager.checkRead:(Ljava/lang/String;)V
38: StackMap locals:
StackMap stack:
aload 3
getfield sun.nio.fs.UnixChannelFactory$Flags.write:Z
ifeq 40
39: aload 7
aload 2
invokevirtual java.lang.SecurityManager.checkWrite:(Ljava/lang/String;)V
40: StackMap locals:
StackMap stack:
aload 3
getfield sun.nio.fs.UnixChannelFactory$Flags.deleteOnClose:Z
ifeq 42
41: aload 7
aload 2
invokevirtual java.lang.SecurityManager.checkDelete:(Ljava/lang/String;)V
42: StackMap locals:
StackMap stack:
iload 0
iflt 45
43: iload 0
aload 1
invokevirtual sun.nio.fs.UnixPath.asByteArray:()[B
iload 5
iload 4
invokestatic sun.nio.fs.UnixNativeDispatcher.openat:(I[BII)I
istore 8
start local 8 44: goto 53
end local 8 45: StackMap locals:
StackMap stack:
aload 1
iload 5
iload 4
invokestatic sun.nio.fs.UnixNativeDispatcher.open:(Lsun/nio/fs/UnixPath;II)I
istore 8
start local 8 46: goto 53
end local 8 StackMap locals:
StackMap stack: sun.nio.fs.UnixException
47: astore 9
start local 9 48: aload 3
getfield sun.nio.fs.UnixChannelFactory$Flags.createNew:Z
ifeq 50
aload 9
invokevirtual sun.nio.fs.UnixException.errno:()I
bipush 21
if_icmpne 50
49: aload 9
bipush 17
invokevirtual sun.nio.fs.UnixException.setError:(I)V
50: StackMap locals: int sun.nio.fs.UnixPath java.lang.String sun.nio.fs.UnixChannelFactory$Flags int int int java.lang.SecurityManager top sun.nio.fs.UnixException
StackMap stack:
iload 6
ifne 52
aload 9
invokevirtual sun.nio.fs.UnixException.errno:()I
bipush 40
if_icmpne 52
51: new sun.nio.fs.UnixException
dup
new java.lang.StringBuilder
dup
aload 9
invokevirtual sun.nio.fs.UnixException.getMessage:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " (NOFOLLOW_LINKS specified)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial sun.nio.fs.UnixException.<init>:(Ljava/lang/String;)V
astore 9
52: StackMap locals:
StackMap stack:
aload 9
athrow
end local 9 start local 8 53: StackMap locals: int sun.nio.fs.UnixPath java.lang.String sun.nio.fs.UnixChannelFactory$Flags int int int java.lang.SecurityManager int
StackMap stack:
aload 3
getfield sun.nio.fs.UnixChannelFactory$Flags.deleteOnClose:Z
ifeq 60
54: iload 0
iflt 57
55: iload 0
aload 1
invokevirtual sun.nio.fs.UnixPath.asByteArray:()[B
iconst_0
invokestatic sun.nio.fs.UnixNativeDispatcher.unlinkat:(I[BI)V
56: goto 60
57: StackMap locals:
StackMap stack:
aload 1
invokestatic sun.nio.fs.UnixNativeDispatcher.unlink:(Lsun/nio/fs/UnixPath;)V
58: goto 60
StackMap locals:
StackMap stack: sun.nio.fs.UnixException
59: pop
60: StackMap locals:
StackMap stack:
new java.io.FileDescriptor
dup
invokespecial java.io.FileDescriptor.<init>:()V
astore 9
start local 9 61: getstatic sun.nio.fs.UnixChannelFactory.fdAccess:Ljdk/internal/misc/JavaIOFileDescriptorAccess;
aload 9
iload 8
invokeinterface jdk.internal.misc.JavaIOFileDescriptorAccess.set:(Ljava/io/FileDescriptor;I)V
62: getstatic sun.nio.fs.UnixChannelFactory.fdAccess:Ljdk/internal/misc/JavaIOFileDescriptorAccess;
aload 9
aload 3
getfield sun.nio.fs.UnixChannelFactory$Flags.append:Z
invokeinterface jdk.internal.misc.JavaIOFileDescriptorAccess.setAppend:(Ljava/io/FileDescriptor;Z)V
63: aload 9
areturn
end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 64 0 dfd I
0 64 1 path Lsun/nio/fs/UnixPath;
0 64 2 pathForPermissionCheck Ljava/lang/String;
0 64 3 flags Lsun/nio/fs/UnixChannelFactory$Flags;
0 64 4 mode I
2 3 5 oflags I
6 64 5 oflags I
13 18 6 pathForSysCall [B
22 64 6 followLinks Z
33 64 7 sm Ljava/lang/SecurityManager;
44 45 8 fd I
46 47 8 fd I
53 64 8 fd I
48 53 9 x Lsun/nio/fs/UnixException;
61 64 9 fdObj Ljava/io/FileDescriptor;
Exception table:
from to target type
42 46 47 Class sun.nio.fs.UnixException
54 58 59 Class sun.nio.fs.UnixException
Exceptions:
throws sun.nio.fs.UnixException
MethodParameters:
Name Flags
dfd
path
pathForPermissionCheck
flags
mode
}
SourceFile: "UnixChannelFactory.java"
NestMembers:
sun.nio.fs.UnixChannelFactory$Flags
InnerClasses:
protected Flags = sun.nio.fs.UnixChannelFactory$Flags of sun.nio.fs.UnixChannelFactory