class javax.swing.filechooser.WindowsFileSystemView extends javax.swing.filechooser.FileSystemView
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: javax.swing.filechooser.WindowsFileSystemView
super_class: javax.swing.filechooser.FileSystemView
{
private static final java.lang.String newFolderString;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String newFolderNextString;
descriptor: Ljava/lang/String;
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: ldc "FileChooser.win32.newFolder"
invokestatic javax.swing.UIManager.getString:(Ljava/lang/Object;)Ljava/lang/String;
1: putstatic javax.swing.filechooser.WindowsFileSystemView.newFolderString:Ljava/lang/String;
2: ldc "FileChooser.win32.newFolder.subsequent"
invokestatic javax.swing.UIManager.getString:(Ljava/lang/Object;)Ljava/lang/String;
3: putstatic javax.swing.filechooser.WindowsFileSystemView.newFolderNextString:Ljava/lang/String;
4: return
LocalVariableTable:
Start End Slot Name Signature
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial javax.swing.filechooser.FileSystemView.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/filechooser/WindowsFileSystemView;
public java.lang.Boolean isTraversable(java.io.File);
descriptor: (Ljava/io/File;)Ljava/lang/Boolean;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual javax.swing.filechooser.WindowsFileSystemView.isFileSystemRoot:(Ljava/io/File;)Z
ifne 1
aload 0
aload 1
invokevirtual javax.swing.filechooser.WindowsFileSystemView.isComputerNode:(Ljava/io/File;)Z
ifne 1
aload 1
invokevirtual java.io.File.isDirectory:()Z
ifne 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/filechooser/WindowsFileSystemView;
0 3 1 f Ljava/io/File;
MethodParameters:
Name Flags
f
public java.io.File getChild(java.io.File, java.lang.String);
descriptor: (Ljava/io/File;Ljava/lang/String;)Ljava/io/File;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ldc "\\"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 8
1: aload 2
ldc "\\\\"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 8
2: aload 0
aload 1
invokevirtual javax.swing.filechooser.WindowsFileSystemView.isFileSystem:(Ljava/io/File;)Z
ifeq 8
3: aload 1
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
astore 3
start local 3 4: aload 3
invokevirtual java.lang.String.length:()I
iconst_2
if_icmplt 8
5: aload 3
iconst_1
invokevirtual java.lang.String.charAt:(I)C
bipush 58
if_icmpne 8
6: aload 3
iconst_0
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.Character.isLetter:(C)Z
ifeq 8
7: aload 0
new java.lang.StringBuilder
dup
aload 3
iconst_0
iconst_2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual javax.swing.filechooser.WindowsFileSystemView.createFileObject:(Ljava/lang/String;)Ljava/io/File;
areturn
end local 3 8: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokespecial javax.swing.filechooser.FileSystemView.getChild:(Ljava/io/File;Ljava/lang/String;)Ljava/io/File;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljavax/swing/filechooser/WindowsFileSystemView;
0 9 1 parent Ljava/io/File;
0 9 2 fileName Ljava/lang/String;
4 8 3 path Ljava/lang/String;
MethodParameters:
Name Flags
parent
fileName
public java.lang.String getSystemTypeDescription(java.io.File);
descriptor: (Ljava/io/File;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual javax.swing.filechooser.WindowsFileSystemView.getShellFolder:(Ljava/io/File;)Lsun/awt/shell/ShellFolder;
invokevirtual sun.awt.shell.ShellFolder.getFolderType:()Ljava/lang/String;
3: areturn
4: StackMap locals:
StackMap stack: java.io.FileNotFoundException
pop
5: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljavax/swing/filechooser/WindowsFileSystemView;
0 6 1 f Ljava/io/File;
Exception table:
from to target type
2 3 4 Class java.io.FileNotFoundException
MethodParameters:
Name Flags
f
public java.io.File getHomeDirectory();
descriptor: ()Ljava/io/File;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual javax.swing.filechooser.WindowsFileSystemView.getRoots:()[Ljava/io/File;
astore 1
start local 1 1: aload 1
arraylength
ifne 2
aconst_null
goto 3
StackMap locals: java.io.File[]
StackMap stack:
2: aload 1
iconst_0
aaload
StackMap locals:
StackMap stack: java.io.File
3: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/swing/filechooser/WindowsFileSystemView;
1 4 1 roots [Ljava/io/File;
public java.io.File createNewFolder(java.io.File);
descriptor: (Ljava/io/File;)Ljava/io/File;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=4, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.io.IOException
dup
ldc "Containing directory is null:"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
getstatic javax.swing.filechooser.WindowsFileSystemView.newFolderString:Ljava/lang/String;
invokevirtual javax.swing.filechooser.WindowsFileSystemView.createFileObject:(Ljava/io/File;Ljava/lang/String;)Ljava/io/File;
astore 2
start local 2 3: iconst_2
istore 3
start local 3 4: goto 9
5: StackMap locals: java.io.File int
StackMap stack:
aload 0
aload 1
6: getstatic javax.swing.filechooser.WindowsFileSystemView.newFolderNextString:Ljava/lang/String;
iconst_1
anewarray java.lang.Object
dup
iconst_0
iload 3
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
7: invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual javax.swing.filechooser.WindowsFileSystemView.createFileObject:(Ljava/io/File;Ljava/lang/String;)Ljava/io/File;
astore 2
8: iinc 3 1
9: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.io.File.exists:()Z
ifeq 10
iload 3
bipush 100
if_icmplt 5
10: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.io.File.exists:()Z
ifeq 12
11: new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "Directory already exists:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.io.File.mkdirs:()Z
ifne 14
13: new java.io.IOException
dup
aload 2
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals:
StackMap stack:
aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljavax/swing/filechooser/WindowsFileSystemView;
0 15 1 containingDir Ljava/io/File;
3 15 2 newFolder Ljava/io/File;
4 15 3 i I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
containingDir
public boolean isDrive(java.io.File);
descriptor: (Ljava/io/File;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual javax.swing.filechooser.WindowsFileSystemView.isFileSystemRoot:(Ljava/io/File;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/filechooser/WindowsFileSystemView;
0 1 1 dir Ljava/io/File;
MethodParameters:
Name Flags
dir
public boolean isFloppyDrive(java.io.File);
descriptor: (Ljava/io/File;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: new javax.swing.filechooser.WindowsFileSystemView$1
dup
aload 0
aload 1
invokespecial javax.swing.filechooser.WindowsFileSystemView$1.<init>:(Ljavax/swing/filechooser/WindowsFileSystemView;Ljava/io/File;)V
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 1: aload 2
ifnull 3
aload 2
ldc "A:\\"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 2
aload 2
ldc "B:\\"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 3
StackMap locals: java.lang.String
StackMap stack:
2: iconst_1
ireturn
StackMap locals:
StackMap stack:
3: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/swing/filechooser/WindowsFileSystemView;
0 4 1 dir Ljava/io/File;
1 4 2 path Ljava/lang/String;
MethodParameters:
Name Flags
dir final
public java.io.File createFileObject(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/io/File;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.lang.String.length:()I
iconst_2
if_icmplt 6
aload 1
iconst_1
invokevirtual java.lang.String.charAt:(I)C
bipush 58
if_icmpne 6
aload 1
iconst_0
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.Character.isLetter:(C)Z
ifeq 6
1: aload 1
invokevirtual java.lang.String.length:()I
iconst_2
if_icmpne 4
2: new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "\\"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 1
3: goto 6
StackMap locals:
StackMap stack:
4: aload 1
iconst_2
invokevirtual java.lang.String.charAt:(I)C
bipush 92
if_icmpeq 6
5: new java.lang.StringBuilder
dup
aload 1
iconst_0
iconst_2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "\\"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
iconst_2
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 1
6: StackMap locals:
StackMap stack:
aload 0
aload 1
invokespecial javax.swing.filechooser.FileSystemView.createFileObject:(Ljava/lang/String;)Ljava/io/File;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljavax/swing/filechooser/WindowsFileSystemView;
0 7 1 path Ljava/lang/String;
MethodParameters:
Name Flags
path
protected java.io.File createFileSystemRoot(java.io.File);
descriptor: (Ljava/io/File;)Ljava/io/File;
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new javax.swing.filechooser.WindowsFileSystemView$2
dup
aload 0
aload 1
invokespecial javax.swing.filechooser.WindowsFileSystemView$2.<init>:(Ljavax/swing/filechooser/WindowsFileSystemView;Ljava/io/File;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/filechooser/WindowsFileSystemView;
0 1 1 f Ljava/io/File;
MethodParameters:
Name Flags
f
}
SourceFile: "FileSystemView.java"
NestMembers:
javax.swing.filechooser.WindowsFileSystemView$1 javax.swing.filechooser.WindowsFileSystemView$2
InnerClasses:
javax.swing.filechooser.WindowsFileSystemView$1
javax.swing.filechooser.WindowsFileSystemView$2