public abstract class java.util.prefs.Preferences
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: java.util.prefs.Preferences
super_class: java.lang.Object
{
private static final java.util.prefs.PreferencesFactory factory;
descriptor: Ljava/util/prefs/PreferencesFactory;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
public static final int MAX_KEY_LENGTH;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 80
public static final int MAX_VALUE_LENGTH;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 8192
public static final int MAX_NAME_LENGTH;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 80
private static java.security.Permission prefsPerm;
descriptor: Ljava/security/Permission;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: invokestatic java.util.prefs.Preferences.factory:()Ljava/util/prefs/PreferencesFactory;
putstatic java.util.prefs.Preferences.factory:Ljava/util/prefs/PreferencesFactory;
1: new java.lang.RuntimePermission
dup
ldc "preferences"
invokespecial java.lang.RuntimePermission.<init>:(Ljava/lang/String;)V
putstatic java.util.prefs.Preferences.prefsPerm:Ljava/security/Permission;
return
LocalVariableTable:
Start End Slot Name Signature
private static java.util.prefs.PreferencesFactory factory();
descriptor: ()Ljava/util/prefs/PreferencesFactory;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=3, args_size=0
0: new java.util.prefs.Preferences$1
dup
invokespecial java.util.prefs.Preferences$1.<init>:()V
1: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
astore 0
start local 0 2: aload 0
ifnull 29
3: aload 0
iconst_0
4: invokestatic java.lang.ClassLoader.getSystemClassLoader:()Ljava/lang/ClassLoader;
5: invokestatic java.lang.Class.forName:(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;
6: invokevirtual java.lang.Class.newInstance:()Ljava/lang/Object;
7: astore 1
start local 1 8: aload 1
checkcast java.util.prefs.PreferencesFactory
9: areturn
end local 1 10: StackMap locals: java.lang.String
StackMap stack: java.lang.Exception
pop
11: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 1
start local 1 12: aload 1
ifnull 14
13: aload 1
new java.security.AllPermission
dup
invokespecial java.security.AllPermission.<init>:()V
invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
14: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 0
iconst_0
15: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
16: invokevirtual java.lang.Thread.getContextClassLoader:()Ljava/lang/ClassLoader;
17: invokestatic java.lang.Class.forName:(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;
18: invokevirtual java.lang.Class.newInstance:()Ljava/lang/Object;
19: astore 2
start local 2 20: aload 2
checkcast java.util.prefs.PreferencesFactory
21: areturn
end local 2 end local 1 22: StackMap locals: java.lang.String
StackMap stack: java.lang.Exception
astore 1
start local 1 23: new java.lang.InternalError
dup
24: new java.lang.StringBuilder
dup
ldc "Can't instantiate Preferences factory "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
25: aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
26: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
27: aload 1
28: invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 29: StackMap locals:
StackMap stack:
new java.util.prefs.Preferences$2
dup
invokespecial java.util.prefs.Preferences$2.<init>:()V
30: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.util.prefs.PreferencesFactory
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
2 31 0 factoryName Ljava/lang/String;
8 10 1 result Ljava/lang/Object;
12 22 1 sm Ljava/lang/SecurityManager;
20 22 2 result Ljava/lang/Object;
23 29 1 e Ljava/lang/Exception;
Exception table:
from to target type
3 9 10 Class java.lang.Exception
11 21 22 Class java.lang.Exception
private static java.util.prefs.PreferencesFactory factory1();
descriptor: ()Ljava/util/prefs/PreferencesFactory;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=4, args_size=0
0: ldc Ljava/util/prefs/PreferencesFactory;
invokestatic java.lang.ClassLoader.getSystemClassLoader:()Ljava/lang/ClassLoader;
invokestatic java.util.ServiceLoader.load:(Ljava/lang/Class;Ljava/lang/ClassLoader;)Ljava/util/ServiceLoader;
1: invokevirtual java.util.ServiceLoader.iterator:()Ljava/util/Iterator;
2: astore 0
start local 0 3: goto 10
4: StackMap locals: java.util.Iterator
StackMap stack:
aload 0
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.prefs.PreferencesFactory
5: areturn
6: StackMap locals:
StackMap stack: java.util.ServiceConfigurationError
astore 1
start local 1 7: aload 1
invokevirtual java.util.ServiceConfigurationError.getCause:()Ljava/lang/Throwable;
instanceof java.lang.SecurityException
ifeq 9
8: goto 10
9: StackMap locals: java.util.ServiceConfigurationError
StackMap stack:
aload 1
athrow
end local 1 10: StackMap locals:
StackMap stack:
aload 0
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
11: ldc "os.name"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 1
start local 1 12: aload 1
ldc "Windows"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 15
13: ldc "java.util.prefs.WindowsPreferencesFactory"
astore 2
start local 2 14: goto 19
end local 2 StackMap locals: java.lang.String
StackMap stack:
15: aload 1
ldc "OS X"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 18
16: ldc "java.util.prefs.MacOSXPreferencesFactory"
astore 2
start local 2 17: goto 19
end local 2 18: StackMap locals:
StackMap stack:
ldc "java.util.prefs.FileSystemPreferencesFactory"
astore 2
start local 2 19: StackMap locals: java.lang.String
StackMap stack:
aload 2
iconst_0
20: ldc Ljava/util/prefs/Preferences;
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
21: invokestatic java.lang.Class.forName:(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;
22: invokevirtual java.lang.Class.newInstance:()Ljava/lang/Object;
23: astore 3
start local 3 24: aload 3
checkcast java.util.prefs.PreferencesFactory
25: areturn
end local 3 26: StackMap locals:
StackMap stack: java.lang.Exception
astore 3
start local 3 27: new java.lang.InternalError
dup
28: new java.lang.StringBuilder
dup
ldc "Can't instantiate platform default Preferences factory "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
29: aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
30: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
31: aload 3
32: invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
3 33 0 itr Ljava/util/Iterator<Ljava/util/prefs/PreferencesFactory;>;
7 10 1 sce Ljava/util/ServiceConfigurationError;
12 33 1 osName Ljava/lang/String;
14 15 2 platformFactory Ljava/lang/String;
17 18 2 platformFactory Ljava/lang/String;
19 33 2 platformFactory Ljava/lang/String;
24 26 3 result Ljava/lang/Object;
27 33 3 e Ljava/lang/Exception;
Exception table:
from to target type
4 5 6 Class java.util.ServiceConfigurationError
19 25 26 Class java.lang.Exception
public static java.util.prefs.Preferences userNodeForPackage(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljava/util/prefs/Preferences;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: invokestatic java.util.prefs.Preferences.userRoot:()Ljava/util/prefs/Preferences;
aload 0
invokestatic java.util.prefs.Preferences.nodeName:(Ljava/lang/Class;)Ljava/lang/String;
invokevirtual java.util.prefs.Preferences.node:(Ljava/lang/String;)Ljava/util/prefs/Preferences;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 c Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Ljava/util/prefs/Preferences;
MethodParameters:
Name Flags
c
public static java.util.prefs.Preferences systemNodeForPackage(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljava/util/prefs/Preferences;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: invokestatic java.util.prefs.Preferences.systemRoot:()Ljava/util/prefs/Preferences;
aload 0
invokestatic java.util.prefs.Preferences.nodeName:(Ljava/lang/Class;)Ljava/lang/String;
invokevirtual java.util.prefs.Preferences.node:(Ljava/lang/String;)Ljava/util/prefs/Preferences;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 c Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Ljava/util/prefs/Preferences;
MethodParameters:
Name Flags
c
private static java.lang.String nodeName(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Class.isArray:()Z
ifeq 4
1: new java.lang.IllegalArgumentException
dup
2: ldc "Arrays have no associated preferences node."
3: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
astore 1
start local 1 5: aload 1
bipush 46
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 2
start local 2 6: iload 2
ifge 8
7: ldc "/<unnamed>"
areturn
8: StackMap locals: java.lang.String int
StackMap stack:
aload 1
iconst_0
iload 2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 3
start local 3 9: new java.lang.StringBuilder
dup
ldc "/"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
bipush 46
bipush 47
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 c Ljava/lang/Class<*>;
5 10 1 className Ljava/lang/String;
6 10 2 pkgEndIndex I
9 10 3 packageName Ljava/lang/String;
Signature: (Ljava/lang/Class<*>;)Ljava/lang/String;
MethodParameters:
Name Flags
c
public static java.util.prefs.Preferences userRoot();
descriptor: ()Ljava/util/prefs/Preferences;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 0
start local 0 1: aload 0
ifnull 3
2: aload 0
getstatic java.util.prefs.Preferences.prefsPerm:Ljava/security/Permission;
invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
3: StackMap locals: java.lang.SecurityManager
StackMap stack:
getstatic java.util.prefs.Preferences.factory:Ljava/util/prefs/PreferencesFactory;
invokeinterface java.util.prefs.PreferencesFactory.userRoot:()Ljava/util/prefs/Preferences;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 4 0 security Ljava/lang/SecurityManager;
public static java.util.prefs.Preferences systemRoot();
descriptor: ()Ljava/util/prefs/Preferences;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 0
start local 0 1: aload 0
ifnull 3
2: aload 0
getstatic java.util.prefs.Preferences.prefsPerm:Ljava/security/Permission;
invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
3: StackMap locals: java.lang.SecurityManager
StackMap stack:
getstatic java.util.prefs.Preferences.factory:Ljava/util/prefs/PreferencesFactory;
invokeinterface java.util.prefs.PreferencesFactory.systemRoot:()Ljava/util/prefs/Preferences;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 4 0 security Ljava/lang/SecurityManager;
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 Ljava/util/prefs/Preferences;
public abstract void put(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
key
value
public abstract java.lang.String get(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
key
def
public abstract void remove(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
key
public abstract void clear();
descriptor: ()V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Exceptions:
throws java.util.prefs.BackingStoreException
public abstract void putInt(java.lang.String, int);
descriptor: (Ljava/lang/String;I)V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
key
value
public abstract int getInt(java.lang.String, int);
descriptor: (Ljava/lang/String;I)I
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
key
def
public abstract void putLong(java.lang.String, long);
descriptor: (Ljava/lang/String;J)V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
key
value
public abstract long getLong(java.lang.String, long);
descriptor: (Ljava/lang/String;J)J
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
key
def
public abstract void putBoolean(java.lang.String, boolean);
descriptor: (Ljava/lang/String;Z)V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
key
value
public abstract boolean getBoolean(java.lang.String, boolean);
descriptor: (Ljava/lang/String;Z)Z
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
key
def
public abstract void putFloat(java.lang.String, float);
descriptor: (Ljava/lang/String;F)V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
key
value
public abstract float getFloat(java.lang.String, float);
descriptor: (Ljava/lang/String;F)F
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
key
def
public abstract void putDouble(java.lang.String, double);
descriptor: (Ljava/lang/String;D)V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
key
value
public abstract double getDouble(java.lang.String, double);
descriptor: (Ljava/lang/String;D)D
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
key
def
public abstract void putByteArray(java.lang.String, byte[]);
descriptor: (Ljava/lang/String;[B)V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
key
value
public abstract byte[] getByteArray(java.lang.String, byte[]);
descriptor: (Ljava/lang/String;[B)[B
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
key
def
public abstract java.lang.String[] keys();
descriptor: ()[Ljava/lang/String;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Exceptions:
throws java.util.prefs.BackingStoreException
public abstract java.lang.String[] childrenNames();
descriptor: ()[Ljava/lang/String;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Exceptions:
throws java.util.prefs.BackingStoreException
public abstract java.util.prefs.Preferences parent();
descriptor: ()Ljava/util/prefs/Preferences;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract java.util.prefs.Preferences node(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/prefs/Preferences;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
pathName
public abstract boolean nodeExists(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Exceptions:
throws java.util.prefs.BackingStoreException
MethodParameters:
Name Flags
pathName
public abstract void removeNode();
descriptor: ()V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Exceptions:
throws java.util.prefs.BackingStoreException
public abstract java.lang.String name();
descriptor: ()Ljava/lang/String;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract java.lang.String absolutePath();
descriptor: ()Ljava/lang/String;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract boolean isUserNode();
descriptor: ()Z
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract void flush();
descriptor: ()V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Exceptions:
throws java.util.prefs.BackingStoreException
public abstract void sync();
descriptor: ()V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Exceptions:
throws java.util.prefs.BackingStoreException
public abstract void addPreferenceChangeListener(java.util.prefs.PreferenceChangeListener);
descriptor: (Ljava/util/prefs/PreferenceChangeListener;)V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
pcl
public abstract void removePreferenceChangeListener(java.util.prefs.PreferenceChangeListener);
descriptor: (Ljava/util/prefs/PreferenceChangeListener;)V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
pcl
public abstract void addNodeChangeListener(java.util.prefs.NodeChangeListener);
descriptor: (Ljava/util/prefs/NodeChangeListener;)V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
ncl
public abstract void removeNodeChangeListener(java.util.prefs.NodeChangeListener);
descriptor: (Ljava/util/prefs/NodeChangeListener;)V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
ncl
public abstract void exportNode(java.io.OutputStream);
descriptor: (Ljava/io/OutputStream;)V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Exceptions:
throws java.io.IOException, java.util.prefs.BackingStoreException
MethodParameters:
Name Flags
os
public abstract void exportSubtree(java.io.OutputStream);
descriptor: (Ljava/io/OutputStream;)V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Exceptions:
throws java.io.IOException, java.util.prefs.BackingStoreException
MethodParameters:
Name Flags
os
public static void importPreferences(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic java.util.prefs.XmlSupport.importPreferences:(Ljava/io/InputStream;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 is Ljava/io/InputStream;
Exceptions:
throws java.io.IOException, java.util.prefs.InvalidPreferencesFormatException
MethodParameters:
Name Flags
is
}
SourceFile: "Preferences.java"
NestMembers:
java.util.prefs.Preferences$1 java.util.prefs.Preferences$2
InnerClasses:
java.util.prefs.Preferences$1
java.util.prefs.Preferences$2