class sun.nio.fs.WindowsChannelFactory
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.nio.fs.WindowsChannelFactory
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 final java.nio.file.OpenOption OPEN_REPARSE_POINT;
descriptor: Ljava/nio/file/OpenOption;
flags: (0x0018) ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: invokestatic jdk.internal.misc.SharedSecrets.getJavaIOFileDescriptorAccess:()Ljdk/internal/misc/JavaIOFileDescriptorAccess;
1: putstatic sun.nio.fs.WindowsChannelFactory.fdAccess:Ljdk/internal/misc/JavaIOFileDescriptorAccess;
2: new sun.nio.fs.WindowsChannelFactory$1
dup
invokespecial sun.nio.fs.WindowsChannelFactory$1.<init>:()V
putstatic sun.nio.fs.WindowsChannelFactory.OPEN_REPARSE_POINT:Ljava/nio/file/OpenOption;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/fs/WindowsChannelFactory;
static java.nio.channels.FileChannel newFileChannel(java.lang.String, java.lang.String, java.util.Set<? extends java.nio.file.OpenOption>, long);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/util/Set;J)Ljava/nio/channels/FileChannel;
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
invokestatic sun.nio.fs.WindowsChannelFactory$Flags.toFlags:(Ljava/util/Set;)Lsun/nio/fs/WindowsChannelFactory$Flags;
astore 5
start local 5 1: aload 5
getfield sun.nio.fs.WindowsChannelFactory$Flags.read:Z
ifne 6
aload 5
getfield sun.nio.fs.WindowsChannelFactory$Flags.write:Z
ifne 6
2: aload 5
getfield sun.nio.fs.WindowsChannelFactory$Flags.append:Z
ifeq 5
3: aload 5
iconst_1
putfield sun.nio.fs.WindowsChannelFactory$Flags.write:Z
4: goto 6
5: StackMap locals: sun.nio.fs.WindowsChannelFactory$Flags
StackMap stack:
aload 5
iconst_1
putfield sun.nio.fs.WindowsChannelFactory$Flags.read:Z
6: StackMap locals:
StackMap stack:
aload 5
getfield sun.nio.fs.WindowsChannelFactory$Flags.read:Z
ifeq 8
aload 5
getfield sun.nio.fs.WindowsChannelFactory$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.WindowsChannelFactory$Flags.append:Z
ifeq 10
aload 5
getfield sun.nio.fs.WindowsChannelFactory$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:
aload 0
aload 1
aload 5
lload 3
invokestatic sun.nio.fs.WindowsChannelFactory.open:(Ljava/lang/String;Ljava/lang/String;Lsun/nio/fs/WindowsChannelFactory$Flags;J)Ljava/io/FileDescriptor;
astore 6
start local 6 11: aload 6
aload 0
aload 5
getfield sun.nio.fs.WindowsChannelFactory$Flags.read:Z
12: aload 5
getfield sun.nio.fs.WindowsChannelFactory$Flags.write:Z
aload 5
getfield sun.nio.fs.WindowsChannelFactory$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 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 pathForWindows Ljava/lang/String;
0 14 1 pathToCheck Ljava/lang/String;
0 14 2 options Ljava/util/Set<+Ljava/nio/file/OpenOption;>;
0 14 3 pSecurityDescriptor J
1 14 5 flags Lsun/nio/fs/WindowsChannelFactory$Flags;
11 14 6 fdObj Ljava/io/FileDescriptor;
Exceptions:
throws sun.nio.fs.WindowsException
Signature: (Ljava/lang/String;Ljava/lang/String;Ljava/util/Set<+Ljava/nio/file/OpenOption;>;J)Ljava/nio/channels/FileChannel;
MethodParameters:
Name Flags
pathForWindows
pathToCheck
options
pSecurityDescriptor
static java.nio.channels.AsynchronousFileChannel newAsynchronousFileChannel(java.lang.String, java.lang.String, java.util.Set<? extends java.nio.file.OpenOption>, long, sun.nio.ch.ThreadPool);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/util/Set;JLsun/nio/ch/ThreadPool;)Ljava/nio/channels/AsynchronousFileChannel;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=9, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 5 0: aload 2
invokestatic sun.nio.fs.WindowsChannelFactory$Flags.toFlags:(Ljava/util/Set;)Lsun/nio/fs/WindowsChannelFactory$Flags;
astore 6
start local 6 1: aload 6
iconst_1
putfield sun.nio.fs.WindowsChannelFactory$Flags.overlapped:Z
2: aload 6
getfield sun.nio.fs.WindowsChannelFactory$Flags.read:Z
ifne 4
aload 6
getfield sun.nio.fs.WindowsChannelFactory$Flags.write:Z
ifne 4
3: aload 6
iconst_1
putfield sun.nio.fs.WindowsChannelFactory$Flags.read:Z
4: StackMap locals: sun.nio.fs.WindowsChannelFactory$Flags
StackMap stack:
aload 6
getfield sun.nio.fs.WindowsChannelFactory$Flags.append:Z
ifeq 6
5: new java.lang.UnsupportedOperationException
dup
ldc "APPEND not allowed"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 6
lload 3
invokestatic sun.nio.fs.WindowsChannelFactory.open:(Ljava/lang/String;Ljava/lang/String;Lsun/nio/fs/WindowsChannelFactory$Flags;J)Ljava/io/FileDescriptor;
astore 7
start local 7 7: goto 11
end local 7 StackMap locals:
StackMap stack: sun.nio.fs.WindowsException
8: astore 8
start local 8 9: aload 8
aload 0
invokevirtual sun.nio.fs.WindowsException.rethrowAsIOException:(Ljava/lang/String;)V
10: aconst_null
areturn
end local 8 start local 7 11: StackMap locals: java.io.FileDescriptor
StackMap stack:
aload 7
aload 6
getfield sun.nio.fs.WindowsChannelFactory$Flags.read:Z
aload 6
getfield sun.nio.fs.WindowsChannelFactory$Flags.write:Z
aload 5
invokestatic sun.nio.ch.WindowsAsynchronousFileChannelImpl.open:(Ljava/io/FileDescriptor;ZZLsun/nio/ch/ThreadPool;)Ljava/nio/channels/AsynchronousFileChannel;
12: areturn
13: StackMap locals:
StackMap stack: java.io.IOException
astore 8
start local 8 14: getstatic sun.nio.fs.WindowsChannelFactory.fdAccess:Ljdk/internal/misc/JavaIOFileDescriptorAccess;
aload 7
invokeinterface jdk.internal.misc.JavaIOFileDescriptorAccess.close:(Ljava/io/FileDescriptor;)V
15: aload 8
athrow
end local 8 end local 7 end local 6 end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 pathForWindows Ljava/lang/String;
0 16 1 pathToCheck Ljava/lang/String;
0 16 2 options Ljava/util/Set<+Ljava/nio/file/OpenOption;>;
0 16 3 pSecurityDescriptor J
0 16 5 pool Lsun/nio/ch/ThreadPool;
1 16 6 flags Lsun/nio/fs/WindowsChannelFactory$Flags;
7 8 7 fdObj Ljava/io/FileDescriptor;
11 16 7 fdObj Ljava/io/FileDescriptor;
9 11 8 x Lsun/nio/fs/WindowsException;
14 16 8 x Ljava/io/IOException;
Exception table:
from to target type
6 7 8 Class sun.nio.fs.WindowsException
11 12 13 Class java.io.IOException
Exceptions:
throws java.io.IOException
Signature: (Ljava/lang/String;Ljava/lang/String;Ljava/util/Set<+Ljava/nio/file/OpenOption;>;JLsun/nio/ch/ThreadPool;)Ljava/nio/channels/AsynchronousFileChannel;
MethodParameters:
Name Flags
pathForWindows
pathToCheck
options
pSecurityDescriptor
pool
private static java.io.FileDescriptor open(java.lang.String, java.lang.String, sun.nio.fs.WindowsChannelFactory$Flags, long);
descriptor: (Ljava/lang/String;Ljava/lang/String;Lsun/nio/fs/WindowsChannelFactory$Flags;J)Ljava/io/FileDescriptor;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=14, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iconst_0
istore 5
start local 5 1: iconst_0
istore 6
start local 6 2: aload 2
getfield sun.nio.fs.WindowsChannelFactory$Flags.read:Z
ifeq 4
3: iload 6
ldc -2147483648
ior
istore 6
4: StackMap locals: int int
StackMap stack:
aload 2
getfield sun.nio.fs.WindowsChannelFactory$Flags.write:Z
ifeq 6
5: iload 6
ldc 1073741824
ior
istore 6
6: StackMap locals:
StackMap stack:
iconst_0
istore 7
start local 7 7: aload 2
getfield sun.nio.fs.WindowsChannelFactory$Flags.shareRead:Z
ifeq 9
8: iload 7
iconst_1
ior
istore 7
9: StackMap locals: int
StackMap stack:
aload 2
getfield sun.nio.fs.WindowsChannelFactory$Flags.shareWrite:Z
ifeq 11
10: iload 7
iconst_2
ior
istore 7
11: StackMap locals:
StackMap stack:
aload 2
getfield sun.nio.fs.WindowsChannelFactory$Flags.shareDelete:Z
ifeq 13
12: iload 7
iconst_4
ior
istore 7
13: StackMap locals:
StackMap stack:
sipush 128
istore 8
start local 8 14: iconst_3
istore 9
start local 9 15: aload 2
getfield sun.nio.fs.WindowsChannelFactory$Flags.write:Z
ifeq 27
16: aload 2
getfield sun.nio.fs.WindowsChannelFactory$Flags.createNew:Z
ifeq 20
17: iconst_1
istore 9
18: iload 8
ldc 2097152
ior
istore 8
19: goto 27
20: StackMap locals: int int
StackMap stack:
aload 2
getfield sun.nio.fs.WindowsChannelFactory$Flags.create:Z
ifeq 22
21: iconst_4
istore 9
22: StackMap locals:
StackMap stack:
aload 2
getfield sun.nio.fs.WindowsChannelFactory$Flags.truncateExisting:Z
ifeq 27
23: iload 9
iconst_4
if_icmpne 26
24: iconst_1
istore 5
25: goto 27
26: StackMap locals:
StackMap stack:
iconst_5
istore 9
27: StackMap locals:
StackMap stack:
aload 2
getfield sun.nio.fs.WindowsChannelFactory$Flags.dsync:Z
ifne 28
aload 2
getfield sun.nio.fs.WindowsChannelFactory$Flags.sync:Z
ifeq 29
28: StackMap locals:
StackMap stack:
iload 8
ldc -2147483648
ior
istore 8
29: StackMap locals:
StackMap stack:
aload 2
getfield sun.nio.fs.WindowsChannelFactory$Flags.overlapped:Z
ifeq 31
30: iload 8
ldc 1073741824
ior
istore 8
31: StackMap locals:
StackMap stack:
aload 2
getfield sun.nio.fs.WindowsChannelFactory$Flags.deleteOnClose:Z
ifeq 33
32: iload 8
ldc 67108864
ior
istore 8
33: StackMap locals:
StackMap stack:
iconst_1
istore 10
start local 10 34: iload 9
iconst_1
if_icmpeq 41
35: aload 2
getfield sun.nio.fs.WindowsChannelFactory$Flags.noFollowLinks:Z
ifne 38
36: aload 2
getfield sun.nio.fs.WindowsChannelFactory$Flags.openReparsePoint:Z
ifne 38
37: aload 2
getfield sun.nio.fs.WindowsChannelFactory$Flags.deleteOnClose:Z
ifeq 41
38: StackMap locals: int
StackMap stack:
aload 2
getfield sun.nio.fs.WindowsChannelFactory$Flags.noFollowLinks:Z
ifne 39
aload 2
getfield sun.nio.fs.WindowsChannelFactory$Flags.deleteOnClose:Z
ifeq 40
39: StackMap locals:
StackMap stack:
iconst_0
istore 10
40: StackMap locals:
StackMap stack:
iload 8
ldc 2097152
ior
istore 8
41: StackMap locals:
StackMap stack:
aload 1
ifnull 50
42: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 11
start local 11 43: aload 11
ifnull 50
44: aload 2
getfield sun.nio.fs.WindowsChannelFactory$Flags.read:Z
ifeq 46
45: aload 11
aload 1
invokevirtual java.lang.SecurityManager.checkRead:(Ljava/lang/String;)V
46: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 2
getfield sun.nio.fs.WindowsChannelFactory$Flags.write:Z
ifeq 48
47: aload 11
aload 1
invokevirtual java.lang.SecurityManager.checkWrite:(Ljava/lang/String;)V
48: StackMap locals:
StackMap stack:
aload 2
getfield sun.nio.fs.WindowsChannelFactory$Flags.deleteOnClose:Z
ifeq 50
49: aload 11
aload 1
invokevirtual java.lang.SecurityManager.checkDelete:(Ljava/lang/String;)V
end local 11 50: StackMap locals:
StackMap stack:
aload 0
51: iload 6
52: iload 7
53: lload 3
54: iload 9
55: iload 8
56: invokestatic sun.nio.fs.WindowsNativeDispatcher.CreateFile:(Ljava/lang/String;IIJII)J
lstore 11
start local 11 57: iload 10
ifne 63
58: lload 11
invokestatic sun.nio.fs.WindowsFileAttributes.readAttributes:(J)Lsun/nio/fs/WindowsFileAttributes;
invokevirtual sun.nio.fs.WindowsFileAttributes.isSymbolicLink:()Z
ifeq 63
59: new sun.nio.fs.WindowsException
dup
ldc "File is symbolic link"
invokespecial sun.nio.fs.WindowsException.<init>:(Ljava/lang/String;)V
athrow
60: StackMap locals: java.lang.String java.lang.String sun.nio.fs.WindowsChannelFactory$Flags long int int int int int int long
StackMap stack: sun.nio.fs.WindowsException
astore 13
start local 13 61: lload 11
invokestatic sun.nio.fs.WindowsNativeDispatcher.CloseHandle:(J)V
62: aload 13
athrow
end local 13 63: StackMap locals:
StackMap stack:
iload 5
ifeq 69
64: lload 11
invokestatic sun.nio.fs.WindowsNativeDispatcher.SetEndOfFile:(J)V
65: goto 69
StackMap locals:
StackMap stack: sun.nio.fs.WindowsException
66: astore 13
start local 13 67: lload 11
invokestatic sun.nio.fs.WindowsNativeDispatcher.CloseHandle:(J)V
68: aload 13
athrow
end local 13 69: StackMap locals:
StackMap stack:
iload 9
iconst_1
if_icmpne 73
aload 2
getfield sun.nio.fs.WindowsChannelFactory$Flags.sparse:Z
ifeq 73
70: lload 11
invokestatic sun.nio.fs.WindowsNativeDispatcher.DeviceIoControlSetSparse:(J)V
71: goto 73
StackMap locals:
StackMap stack: sun.nio.fs.WindowsException
72: pop
73: StackMap locals:
StackMap stack:
new java.io.FileDescriptor
dup
invokespecial java.io.FileDescriptor.<init>:()V
astore 13
start local 13 74: getstatic sun.nio.fs.WindowsChannelFactory.fdAccess:Ljdk/internal/misc/JavaIOFileDescriptorAccess;
aload 13
lload 11
invokeinterface jdk.internal.misc.JavaIOFileDescriptorAccess.setHandle:(Ljava/io/FileDescriptor;J)V
75: getstatic sun.nio.fs.WindowsChannelFactory.fdAccess:Ljdk/internal/misc/JavaIOFileDescriptorAccess;
aload 13
aload 2
getfield sun.nio.fs.WindowsChannelFactory$Flags.append:Z
invokeinterface jdk.internal.misc.JavaIOFileDescriptorAccess.setAppend:(Ljava/io/FileDescriptor;Z)V
76: getstatic sun.nio.fs.WindowsChannelFactory.fdAccess:Ljdk/internal/misc/JavaIOFileDescriptorAccess;
aload 13
invokeinterface jdk.internal.misc.JavaIOFileDescriptorAccess.registerCleanup:(Ljava/io/FileDescriptor;)V
77: aload 13
areturn
end local 13 end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 78 0 pathForWindows Ljava/lang/String;
0 78 1 pathToCheck Ljava/lang/String;
0 78 2 flags Lsun/nio/fs/WindowsChannelFactory$Flags;
0 78 3 pSecurityDescriptor J
1 78 5 truncateAfterOpen Z
2 78 6 dwDesiredAccess I
7 78 7 dwShareMode I
14 78 8 dwFlagsAndAttributes I
15 78 9 dwCreationDisposition I
34 78 10 okayToFollowLinks Z
43 50 11 sm Ljava/lang/SecurityManager;
57 78 11 handle J
61 63 13 x Lsun/nio/fs/WindowsException;
67 69 13 x Lsun/nio/fs/WindowsException;
74 78 13 fdObj Ljava/io/FileDescriptor;
Exception table:
from to target type
58 60 60 Class sun.nio.fs.WindowsException
64 65 66 Class sun.nio.fs.WindowsException
70 71 72 Class sun.nio.fs.WindowsException
Exceptions:
throws sun.nio.fs.WindowsException
MethodParameters:
Name Flags
pathForWindows
pathToCheck
flags
pSecurityDescriptor
}
SourceFile: "WindowsChannelFactory.java"
NestMembers:
sun.nio.fs.WindowsChannelFactory$1 sun.nio.fs.WindowsChannelFactory$Flags
InnerClasses:
sun.nio.fs.WindowsChannelFactory$1
private Flags = sun.nio.fs.WindowsChannelFactory$Flags of sun.nio.fs.WindowsChannelFactory