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 sun.misc.JavaIOFileDescriptorAccess fdAccess;
descriptor: Lsun/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 sun.misc.SharedSecrets.getJavaIOFileDescriptorAccess:()Lsun/misc/JavaIOFileDescriptorAccess;
1: putstatic sun.nio.fs.UnixChannelFactory.fdAccess:Lsun/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=5, 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:Lsun/misc/JavaIOFileDescriptorAccess;
aload 4
iload 0
invokeinterface sun.misc.JavaIOFileDescriptorAccess.set:(Ljava/io/FileDescriptor;I)V
2: aload 4
aload 1
iload 2
iload 3
aconst_null
invokestatic sun.nio.ch.FileChannelImpl.open:(Ljava/io/FileDescriptor;Ljava/lang/String;ZZLjava/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
aload 5
getfield sun.nio.fs.UnixChannelFactory$Flags.write:Z
aload 5
getfield sun.nio.fs.UnixChannelFactory$Flags.append:Z
aconst_null
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 12 0 dfd I
0 12 1 path Lsun/nio/fs/UnixPath;
0 12 2 pathForPermissionCheck Ljava/lang/String;
0 12 3 options Ljava/util/Set<+Ljava/nio/file/OpenOption;>;
0 12 4 mode I
1 12 5 flags Lsun/nio/fs/UnixChannelFactory$Flags;
11 12 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:
invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 7
start local 7 31: aload 7
ifnull 40
32: aload 2
ifnonnull 34
33: aload 1
invokevirtual sun.nio.fs.UnixPath.getPathForPermissionCheck:()Ljava/lang/String;
astore 2
34: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 3
getfield sun.nio.fs.UnixChannelFactory$Flags.read:Z
ifeq 36
35: aload 7
aload 2
invokevirtual java.lang.SecurityManager.checkRead:(Ljava/lang/String;)V
36: StackMap locals:
StackMap stack:
aload 3
getfield sun.nio.fs.UnixChannelFactory$Flags.write:Z
ifeq 38
37: aload 7
aload 2
invokevirtual java.lang.SecurityManager.checkWrite:(Ljava/lang/String;)V
38: StackMap locals:
StackMap stack:
aload 3
getfield sun.nio.fs.UnixChannelFactory$Flags.deleteOnClose:Z
ifeq 40
39: aload 7
aload 2
invokevirtual java.lang.SecurityManager.checkDelete:(Ljava/lang/String;)V
40: StackMap locals:
StackMap stack:
iload 0
iflt 43
41: 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 42: goto 51
end local 8 43: 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 44: goto 51
end local 8 StackMap locals:
StackMap stack: sun.nio.fs.UnixException
45: astore 9
start local 9 46: aload 3
getfield sun.nio.fs.UnixChannelFactory$Flags.createNew:Z
ifeq 48
aload 9
invokevirtual sun.nio.fs.UnixException.errno:()I
bipush 21
if_icmpne 48
47: aload 9
bipush 17
invokevirtual sun.nio.fs.UnixException.setError:(I)V
48: 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 50
aload 9
invokevirtual sun.nio.fs.UnixException.errno:()I
bipush 40
if_icmpne 50
49: 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
50: StackMap locals:
StackMap stack:
aload 9
athrow
end local 9 start local 8 51: 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 58
52: iload 0
iflt 55
53: iload 0
aload 1
invokevirtual sun.nio.fs.UnixPath.asByteArray:()[B
iconst_0
invokestatic sun.nio.fs.UnixNativeDispatcher.unlinkat:(I[BI)V
54: goto 58
55: StackMap locals:
StackMap stack:
aload 1
invokestatic sun.nio.fs.UnixNativeDispatcher.unlink:(Lsun/nio/fs/UnixPath;)V
56: goto 58
StackMap locals:
StackMap stack: sun.nio.fs.UnixException
57: pop
58: StackMap locals:
StackMap stack:
new java.io.FileDescriptor
dup
invokespecial java.io.FileDescriptor.<init>:()V
astore 9
start local 9 59: getstatic sun.nio.fs.UnixChannelFactory.fdAccess:Lsun/misc/JavaIOFileDescriptorAccess;
aload 9
iload 8
invokeinterface sun.misc.JavaIOFileDescriptorAccess.set:(Ljava/io/FileDescriptor;I)V
60: 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 61 0 dfd I
0 61 1 path Lsun/nio/fs/UnixPath;
0 61 2 pathForPermissionCheck Ljava/lang/String;
0 61 3 flags Lsun/nio/fs/UnixChannelFactory$Flags;
0 61 4 mode I
2 3 5 oflags I
6 61 5 oflags I
13 18 6 pathForSysCall [B
22 61 6 followLinks Z
31 61 7 sm Ljava/lang/SecurityManager;
42 43 8 fd I
44 45 8 fd I
51 61 8 fd I
46 51 9 x Lsun/nio/fs/UnixException;
59 61 9 fdObj Ljava/io/FileDescriptor;
Exception table:
from to target type
40 44 45 Class sun.nio.fs.UnixException
52 56 57 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