Java Doc for WindowsPreferences.java in  » 6.0-JDK-Platform » windows » java » util » prefs » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Platform » windows » java.util.prefs 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.util.prefs.Preferences
      java.util.prefs.AbstractPreferences
         java.util.prefs.WindowsPreferences

WindowsPreferences
class WindowsPreferences extends AbstractPreferences (Code)
Windows registry based implementation of Preferences. Preferences' systemRoot and userRoot are stored in HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Prefs and HKEY_CURRENT_USER\Software\JavaSoft\Prefs correspondingly.
author:
   Konstantin Kladko
version:
   1.24, 05/05/07
See Also:   Preferences
See Also:   PreferencesFactory
since:
   1.4


Field Summary
final static  PreferencessystemRoot
     System root node.
final static  PreferencesuserRoot
     User root node.


Method Summary
protected  AbstractPreferenceschildSpi(String name)
     Implements AbstractPreferences childSpi() method.
protected  String[]childrenNamesSpi()
     Implements AbstractPreferences childrenNamesSpi() method.
public  voidflush()
     Implements Preferences flush() method.
protected  voidflushSpi()
     Empty, never used implementation of AbstractPreferences.flushSpi().
protected  StringgetSpi(String javaName)
     Implements AbstractPreferences getSpi() method.
protected  String[]keysSpi()
     Implements AbstractPreferences keysSpi() method.
protected  voidputSpi(String javaName, String value)
     Implements AbstractPreferences putSpi() method.
public  voidremoveNodeSpi()
     Implements AbstractPreferences removeNodeSpi() method.
protected  voidremoveSpi(String key)
     Implements AbstractPreferences removeSpi() method.
public  voidsync()
     Implements Preferences sync() method. Flushes Windows registry changes to disk.
protected  voidsyncSpi()
     Empty, never used implementation of AbstractPreferences.flushSpi().

Field Detail
systemRoot
final static Preferences systemRoot(Code)
System root node.



userRoot
final static Preferences userRoot(Code)
User root node.





Method Detail
childSpi
protected AbstractPreferences childSpi(String name)(Code)
Implements AbstractPreferences childSpi() method. Constructs a child node with a given name and creates its underlying Windows registry node, if it does not exist. Logs a warning message, if Windows Registry is unavailable.



childrenNamesSpi
protected String[] childrenNamesSpi() throws BackingStoreException(Code)
Implements AbstractPreferences childrenNamesSpi() method. Calls Windows registry to retrive children of this node. Throws a BackingStoreException and logs a warning message, if Windows registry is not available.



flush
public void flush() throws BackingStoreException(Code)
Implements Preferences flush() method. Flushes Windows registry changes to disk. Throws a BackingStoreException and logs a warning message if Windows registry is not available.



flushSpi
protected void flushSpi() throws BackingStoreException(Code)
Empty, never used implementation of AbstractPreferences.flushSpi().



getSpi
protected String getSpi(String javaName)(Code)
Implements AbstractPreferences getSpi() method. Gets a string value from the underlying Windows registry node. Logs a warning, if Windows registry is unavailable.
See Also:   WindowsPreferences.putSpi(String,String)



keysSpi
protected String[] keysSpi() throws BackingStoreException(Code)
Implements AbstractPreferences keysSpi() method. Gets value names from the underlying Windows registry node. Throws a BackingStoreException and logs a warning, if Windows registry is unavailable.



putSpi
protected void putSpi(String javaName, String value)(Code)
Implements AbstractPreferences putSpi() method. Puts name-value pair into the underlying Windows registry node. Logs a warning, if Windows registry is unavailable.
See Also:   WindowsPreferences.getSpi(String)



removeNodeSpi
public void removeNodeSpi() throws BackingStoreException(Code)
Implements AbstractPreferences removeNodeSpi() method. Deletes underlying Windows registry node. Throws a BackingStoreException and logs a warning, if Windows registry is not available.



removeSpi
protected void removeSpi(String key)(Code)
Implements AbstractPreferences removeSpi() method. Deletes a string name-value pair from the underlying Windows registry node, if this value still exists. Logs a warning, if Windows registry is unavailable or key has already been deleted.



sync
public void sync() throws BackingStoreException(Code)
Implements Preferences sync() method. Flushes Windows registry changes to disk. Equivalent to flush().
See Also:    flush()



syncSpi
protected void syncSpi() throws BackingStoreException(Code)
Empty, never used implementation of AbstractPreferences.flushSpi().



Fields inherited from java.util.prefs.AbstractPreferences
final protected Object lock(Code)(Java Doc)
protected boolean newNode(Code)(Java Doc)
final AbstractPreferences parent(Code)(Java Doc)

Methods inherited from java.util.prefs.AbstractPreferences
public String absolutePath()(Code)(Java Doc)
public void addNodeChangeListener(NodeChangeListener ncl)(Code)(Java Doc)
public void addPreferenceChangeListener(PreferenceChangeListener pcl)(Code)(Java Doc)
final protected AbstractPreferences[] cachedChildren()(Code)(Java Doc)
abstract protected AbstractPreferences childSpi(String name)(Code)(Java Doc)
public String[] childrenNames() throws BackingStoreException(Code)(Java Doc)
abstract protected String[] childrenNamesSpi() throws BackingStoreException(Code)(Java Doc)
public void clear() throws BackingStoreException(Code)(Java Doc)
public void exportNode(OutputStream os) throws IOException, BackingStoreException(Code)(Java Doc)
public void exportSubtree(OutputStream os) throws IOException, BackingStoreException(Code)(Java Doc)
public void flush() throws BackingStoreException(Code)(Java Doc)
abstract protected void flushSpi() throws BackingStoreException(Code)(Java Doc)
public String get(String key, String def)(Code)(Java Doc)
public boolean getBoolean(String key, boolean def)(Code)(Java Doc)
public byte[] getByteArray(String key, byte[] def)(Code)(Java Doc)
protected AbstractPreferences getChild(String nodeName) throws BackingStoreException(Code)(Java Doc)
public double getDouble(String key, double def)(Code)(Java Doc)
public float getFloat(String key, float def)(Code)(Java Doc)
public int getInt(String key, int def)(Code)(Java Doc)
public long getLong(String key, long def)(Code)(Java Doc)
abstract protected String getSpi(String key)(Code)(Java Doc)
protected boolean isRemoved()(Code)(Java Doc)
public boolean isUserNode()(Code)(Java Doc)
public String[] keys() throws BackingStoreException(Code)(Java Doc)
abstract protected String[] keysSpi() throws BackingStoreException(Code)(Java Doc)
public String name()(Code)(Java Doc)
public Preferences node(String path)(Code)(Java Doc)
public boolean nodeExists(String path) throws BackingStoreException(Code)(Java Doc)
NodeChangeListener[] nodeListeners()(Code)(Java Doc)
public Preferences parent()(Code)(Java Doc)
PreferenceChangeListener[] prefListeners()(Code)(Java Doc)
public void put(String key, String value)(Code)(Java Doc)
public void putBoolean(String key, boolean value)(Code)(Java Doc)
public void putByteArray(String key, byte[] value)(Code)(Java Doc)
public void putDouble(String key, double value)(Code)(Java Doc)
public void putFloat(String key, float value)(Code)(Java Doc)
public void putInt(String key, int value)(Code)(Java Doc)
public void putLong(String key, long value)(Code)(Java Doc)
abstract protected void putSpi(String key, String value)(Code)(Java Doc)
public void remove(String key)(Code)(Java Doc)
public void removeNode() throws BackingStoreException(Code)(Java Doc)
public void removeNodeChangeListener(NodeChangeListener ncl)(Code)(Java Doc)
abstract protected void removeNodeSpi() throws BackingStoreException(Code)(Java Doc)
public void removePreferenceChangeListener(PreferenceChangeListener pcl)(Code)(Java Doc)
abstract protected void removeSpi(String key)(Code)(Java Doc)
public void sync() throws BackingStoreException(Code)(Java Doc)
abstract protected void syncSpi() throws BackingStoreException(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Fields inherited from java.util.prefs.Preferences
final public static int MAX_KEY_LENGTH(Code)(Java Doc)
final public static int MAX_NAME_LENGTH(Code)(Java Doc)
final public static int MAX_VALUE_LENGTH(Code)(Java Doc)

Methods inherited from java.util.prefs.Preferences
abstract public String absolutePath()(Code)(Java Doc)
abstract public void addNodeChangeListener(NodeChangeListener ncl)(Code)(Java Doc)
abstract public void addPreferenceChangeListener(PreferenceChangeListener pcl)(Code)(Java Doc)
abstract public String[] childrenNames() throws BackingStoreException(Code)(Java Doc)
abstract public void clear() throws BackingStoreException(Code)(Java Doc)
abstract public void exportNode(OutputStream os) throws IOException, BackingStoreException(Code)(Java Doc)
abstract public void exportSubtree(OutputStream os) throws IOException, BackingStoreException(Code)(Java Doc)
abstract public void flush() throws BackingStoreException(Code)(Java Doc)
abstract public String get(String key, String def)(Code)(Java Doc)
abstract public boolean getBoolean(String key, boolean def)(Code)(Java Doc)
abstract public byte[] getByteArray(String key, byte[] def)(Code)(Java Doc)
abstract public double getDouble(String key, double def)(Code)(Java Doc)
abstract public float getFloat(String key, float def)(Code)(Java Doc)
abstract public int getInt(String key, int def)(Code)(Java Doc)
abstract public long getLong(String key, long def)(Code)(Java Doc)
public static void importPreferences(InputStream is) throws IOException, InvalidPreferencesFormatException(Code)(Java Doc)
abstract public boolean isUserNode()(Code)(Java Doc)
abstract public String[] keys() throws BackingStoreException(Code)(Java Doc)
abstract public String name()(Code)(Java Doc)
abstract public Preferences node(String pathName)(Code)(Java Doc)
abstract public boolean nodeExists(String pathName) throws BackingStoreException(Code)(Java Doc)
abstract public Preferences parent()(Code)(Java Doc)
abstract public void put(String key, String value)(Code)(Java Doc)
abstract public void putBoolean(String key, boolean value)(Code)(Java Doc)
abstract public void putByteArray(String key, byte[] value)(Code)(Java Doc)
abstract public void putDouble(String key, double value)(Code)(Java Doc)
abstract public void putFloat(String key, float value)(Code)(Java Doc)
abstract public void putInt(String key, int value)(Code)(Java Doc)
abstract public void putLong(String key, long value)(Code)(Java Doc)
abstract public void remove(String key)(Code)(Java Doc)
abstract public void removeNode() throws BackingStoreException(Code)(Java Doc)
abstract public void removeNodeChangeListener(NodeChangeListener ncl)(Code)(Java Doc)
abstract public void removePreferenceChangeListener(PreferenceChangeListener pcl)(Code)(Java Doc)
abstract public void sync() throws BackingStoreException(Code)(Java Doc)
public static Preferences systemNodeForPackage(Class c)(Code)(Java Doc)
public static Preferences systemRoot()(Code)(Java Doc)
abstract public String toString()(Code)(Java Doc)
public static Preferences userNodeForPackage(Class c)(Code)(Java Doc)
public static Preferences userRoot()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.