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;
12: 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
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 31
aload 3
getfield sun.nio.fs.UnixChannelFactory$Flags.noFollowLinks:Z
ifne 23
aload 3
getfield sun.nio.fs.UnixChannelFactory$Flags.deleteOnClose:Z
ifeq 31
23: StackMap locals: int
StackMap stack:
aload 3
getfield sun.nio.fs.UnixChannelFactory$Flags.deleteOnClose:Z
ifeq 29
invokestatic sun.nio.fs.UnixNativeDispatcher.supportsNoFollowLinks:()Z
ifne 29
24: aload 1
iconst_0
invokestatic sun.nio.fs.UnixFileAttributes.get:(Lsun/nio/fs/UnixPath;Z)Lsun/nio/fs/UnixFileAttributes;
invokevirtual sun.nio.fs.UnixFileAttributes.isSymbolicLink:()Z
ifeq 29
25: new sun.nio.fs.UnixException
dup
ldc "DELETE_ON_CLOSE specified and file is a symbolic link"
invokespecial sun.nio.fs.UnixException.<init>:(Ljava/lang/String;)V
athrow
26: StackMap locals:
StackMap stack: sun.nio.fs.UnixException
astore 7
start local 7 27: aload 3
getfield sun.nio.fs.UnixChannelFactory$Flags.create:Z
ifeq 28
aload 7
invokevirtual sun.nio.fs.UnixException.errno:()I
iconst_2
if_icmpeq 29
28: StackMap locals: sun.nio.fs.UnixException
StackMap stack:
aload 7
athrow
end local 7 29: StackMap locals:
StackMap stack:
iconst_0
istore 6
30: iload 5
ldc 131072
ior
istore 5
31: StackMap locals:
StackMap stack:
aload 3
getfield sun.nio.fs.UnixChannelFactory$Flags.dsync:Z
ifeq 33
32: iload 5
sipush 4096
ior
istore 5
33: StackMap locals:
StackMap stack:
aload 3
getfield sun.nio.fs.UnixChannelFactory$Flags.sync:Z
ifeq 35
34: iload 5
ldc 1052672
ior
istore 5
35: StackMap locals:
StackMap stack:
invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 7
start local 7 36: aload 7
ifnull 45
37: aload 2
ifnonnull 39
38: aload 1
invokevirtual sun.nio.fs.UnixPath.getPathForPermissionCheck:()Ljava/lang/String;
astore 2
39: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 3
getfield sun.nio.fs.UnixChannelFactory$Flags.read:Z
ifeq 41
40: aload 7
aload 2
invokevirtual java.lang.SecurityManager.checkRead:(Ljava/lang/String;)V
41: StackMap locals:
StackMap stack:
aload 3
getfield sun.nio.fs.UnixChannelFactory$Flags.write:Z
ifeq 43
42: aload 7
aload 2
invokevirtual java.lang.SecurityManager.checkWrite:(Ljava/lang/String;)V
43: StackMap locals:
StackMap stack:
aload 3
getfield sun.nio.fs.UnixChannelFactory$Flags.deleteOnClose:Z
ifeq 45
44: aload 7
aload 2
invokevirtual java.lang.SecurityManager.checkDelete:(Ljava/lang/String;)V
45: StackMap locals:
StackMap stack:
iload 0
iflt 48
46: 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 47: goto 56
end local 8 48: 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 49: goto 56
end local 8 StackMap locals:
StackMap stack: sun.nio.fs.UnixException
50: astore 9
start local 9 51: aload 3
getfield sun.nio.fs.UnixChannelFactory$Flags.createNew:Z
ifeq 53
aload 9
invokevirtual sun.nio.fs.UnixException.errno:()I
bipush 21
if_icmpne 53
52: aload 9
bipush 17
invokevirtual sun.nio.fs.UnixException.setError:(I)V
53: 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 55
aload 9
invokevirtual sun.nio.fs.UnixException.errno:()I
bipush 40
if_icmpne 55
54: 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
55: StackMap locals:
StackMap stack:
aload 9
athrow
end local 9 start local 8 56: 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 63
57: iload 0
iflt 60
58: iload 0
aload 1
invokevirtual sun.nio.fs.UnixPath.asByteArray:()[B
iconst_0
invokestatic sun.nio.fs.UnixNativeDispatcher.unlinkat:(I[BI)V
59: goto 63
60: StackMap locals:
StackMap stack:
aload 1
invokestatic sun.nio.fs.UnixNativeDispatcher.unlink:(Lsun/nio/fs/UnixPath;)V
61: goto 63
StackMap locals:
StackMap stack: sun.nio.fs.UnixException
62: pop
63: StackMap locals:
StackMap stack:
new java.io.FileDescriptor
dup
invokespecial java.io.FileDescriptor.<init>:()V
astore 9
start local 9 64: getstatic sun.nio.fs.UnixChannelFactory.fdAccess:Lsun/misc/JavaIOFileDescriptorAccess;
aload 9
iload 8
invokeinterface sun.misc.JavaIOFileDescriptorAccess.set:(Ljava/io/FileDescriptor;I)V
65: 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 66 0 dfd I
0 66 1 path Lsun/nio/fs/UnixPath;
0 66 2 pathForPermissionCheck Ljava/lang/String;
0 66 3 flags Lsun/nio/fs/UnixChannelFactory$Flags;
0 66 4 mode I
2 3 5 oflags I
6 66 5 oflags I
13 18 6 pathForSysCall [B
22 66 6 followLinks Z
27 29 7 x Lsun/nio/fs/UnixException;
36 66 7 sm Ljava/lang/SecurityManager;
47 48 8 fd I
49 50 8 fd I
56 66 8 fd I
51 56 9 x Lsun/nio/fs/UnixException;
64 66 9 fdObj Ljava/io/FileDescriptor;
Exception table:
from to target type
24 26 26 Class sun.nio.fs.UnixException
45 49 50 Class sun.nio.fs.UnixException
57 61 62 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