Java Doc for WindowsRegistry.java in  » IDE-Netbeans » nbi » org » netbeans » installer » utils » system » windows » 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 » IDE Netbeans » nbi » org.netbeans.installer.utils.system.windows 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.installer.utils.system.windows.WindowsRegistry

WindowsRegistry
public class WindowsRegistry (Code)

author:
   Dmitry Lipin
author:
   Kirill Sorokin


Field Summary
final public static  intHKCR
    
final public static  intHKCU
    
final public static  intHKEY_CLASSES_ROOT
    
final public static  intHKEY_CURRENT_CONFIG
    
final public static  intHKEY_CURRENT_USER
    
final public static  intHKEY_DYN_DATA
    
final public static  intHKEY_LOCAL_MACHINE
    
final public static  intHKEY_PERFORMANCE_DATA
    
final public static  intHKEY_PERFORMANCE_NLSTEXT
    
final public static  intHKEY_PERFORMANCE_TEXT
    
final public static  intHKEY_USERS
    
final public static  intHKLM
    
final public static  intREG_BINARY
    
final public static  intREG_DWORD
    
final public static  intREG_DWORD_BIG_ENDIAN
    
final public static  intREG_DWORD_LITTLE_ENDIAN
    
final public static  intREG_EXPAND_SZ
    
final public static  intREG_FULL_RESOURCE_DESCRIPTOR
    
final public static  intREG_LINK
    
final public static  intREG_MULTI_SZ
    
final public static  intREG_NONE
    
final public static  intREG_QWORD
    
final public static  intREG_QWORD_LITTLE_ENDIAN
    
final public static  intREG_RESOURCE_LIST
    
final public static  intREG_RESOURCE_REQUIREMENTS_LIST
    
final public static  intREG_SZ
    
final public static  StringSEPARATOR
    

Constructor Summary
public  WindowsRegistry()
    

Method Summary
public  booleancanModifyKey(int section, String key)
     Checks whether the specified key exists and can be modified in the registry.
public  StringconstructKey(String parent, String child)
    
public  intcountSubKeys(int section, String key)
     Get the number of the subkeys of the specified key.
public  intcountValues(int section, String key)
     Get the number of the values of the specified key.
public  voidcreateKey(int section, String key)
     Create the new key in the registry.
public  voidcreateKey(int section, String parent, String child)
     Create the new key in the registry.
public  voiddeleteKey(int section, String key)
     Delete the specified key exists in the registry.
public  voiddeleteKey(int section, String parent, String child)
     Delete the specified key exists in the registry.
public  voiddeleteValue(int section, String key, String name)
     Delete the specified value exists in the registry.
public  intget32BitValue(int section, String key, String name)
     Get integer value.
public  byte[]getBinaryValue(int section, String key, String name)
     Get binary value.
public  StringgetKeyName(String key)
    
public  StringgetKeyParent(String key)
    
public  String[]getMultiStringValue(int section, String key, String name)
    
public  StringgetStringValue(int section, String key, String name)
    
public  StringgetStringValue(int section, String key, String name, boolean expand)
     Get string value.
public  String[]getSubKeyNames(int section, String key)
     Get the array of subkey names of the specified key.
public  String[]getSubKeys(int section, String key)
    
public  String[]getValueNames(int section, String key)
     Get the array of values names of the specified key.
public  intgetValueType(int section, String key, String name)
     Returns the type of the value.
public  booleankeyEmpty(int section, String key)
     Checks whether the specified value exists in the registry.
public  booleankeyExists(int section, String key)
     Checks whether the specified key exists in the registry (can be read).
public  booleankeyExists(int section, String parent, String child)
    
public  voidset32BitValue(int section, String key, String name, int value)
     Set REG_DWORD value.
public  voidsetAdditionalValues(int section, String key, Map<String, Object> values)
    
public  voidsetBinaryValue(int section, String key, String name, byte[] value)
     Set binary (REG_BINARY) value.
public  voidsetMultiStringValue(int section, String key, String name, String[] value)
     Set REG_MULTI_SZ value.
public  voidsetNoneValue(int section, String key, String name, byte... bytes)
    
public  voidsetStringValue(int section, String key, String name, Object value)
    
public  voidsetStringValue(int section, String key, String name, String value)
    
public  voidsetStringValue(int section, String key, String name, String value, boolean expandable)
     Set string value.
public  booleanvalueExists(int section, String key, String name)
     Checks whether the specified value exists in the registry.

Field Detail
HKCR
final public static int HKCR(Code)



HKCU
final public static int HKCU(Code)



HKEY_CLASSES_ROOT
final public static int HKEY_CLASSES_ROOT(Code)



HKEY_CURRENT_CONFIG
final public static int HKEY_CURRENT_CONFIG(Code)



HKEY_CURRENT_USER
final public static int HKEY_CURRENT_USER(Code)



HKEY_DYN_DATA
final public static int HKEY_DYN_DATA(Code)



HKEY_LOCAL_MACHINE
final public static int HKEY_LOCAL_MACHINE(Code)



HKEY_PERFORMANCE_DATA
final public static int HKEY_PERFORMANCE_DATA(Code)



HKEY_PERFORMANCE_NLSTEXT
final public static int HKEY_PERFORMANCE_NLSTEXT(Code)



HKEY_PERFORMANCE_TEXT
final public static int HKEY_PERFORMANCE_TEXT(Code)



HKEY_USERS
final public static int HKEY_USERS(Code)



HKLM
final public static int HKLM(Code)



REG_BINARY
final public static int REG_BINARY(Code)



REG_DWORD
final public static int REG_DWORD(Code)



REG_DWORD_BIG_ENDIAN
final public static int REG_DWORD_BIG_ENDIAN(Code)



REG_DWORD_LITTLE_ENDIAN
final public static int REG_DWORD_LITTLE_ENDIAN(Code)



REG_EXPAND_SZ
final public static int REG_EXPAND_SZ(Code)



REG_FULL_RESOURCE_DESCRIPTOR
final public static int REG_FULL_RESOURCE_DESCRIPTOR(Code)



REG_LINK
final public static int REG_LINK(Code)



REG_MULTI_SZ
final public static int REG_MULTI_SZ(Code)



REG_NONE
final public static int REG_NONE(Code)



REG_QWORD
final public static int REG_QWORD(Code)



REG_QWORD_LITTLE_ENDIAN
final public static int REG_QWORD_LITTLE_ENDIAN(Code)



REG_RESOURCE_LIST
final public static int REG_RESOURCE_LIST(Code)



REG_RESOURCE_REQUIREMENTS_LIST
final public static int REG_RESOURCE_REQUIREMENTS_LIST(Code)



REG_SZ
final public static int REG_SZ(Code)



SEPARATOR
final public static String SEPARATOR(Code)




Constructor Detail
WindowsRegistry
public WindowsRegistry()(Code)




Method Detail
canModifyKey
public boolean canModifyKey(int section, String key) throws NativeException(Code)
Checks whether the specified key exists and can be modified in the registry.
Parameters:
  section - The section of the registry
Parameters:
  key - The specified key true if the specified key can exists and can be modified, false otherwise



constructKey
public String constructKey(String parent, String child)(Code)



countSubKeys
public int countSubKeys(int section, String key) throws NativeException(Code)
Get the number of the subkeys of the specified key.
Parameters:
  section - The section of the registry
Parameters:
  key - The specified key If the key doesn`t exist or can`t be accessed then return -1.
Otherwise return the number of subkeys



countValues
public int countValues(int section, String key) throws NativeException(Code)
Get the number of the values of the specified key.
Parameters:
  section - The section of the registry
Parameters:
  key - The specified key If the key doesn`t exist or can`t be accessed then return -1.
Otherwise return the number of values



createKey
public void createKey(int section, String key) throws NativeException(Code)
Create the new key in the registry.
Parameters:
  section - The section of the registry
Parameters:
  key - The specified key true if the key was successfully created,
false otherwise



createKey
public void createKey(int section, String parent, String child) throws NativeException(Code)
Create the new key in the registry.
Parameters:
  section - The section of the registry
Parameters:
  parent - key The specified parent key
Parameters:
  parent - key The specified child key true if the key was successfully created,
false otherwise



deleteKey
public void deleteKey(int section, String key) throws NativeException(Code)
Delete the specified key exists in the registry. Note that if the key contains subkeys then it would not be deleted.
Parameters:
  section - The section of the registry
Parameters:
  key - The specified key true if the specified key was deleted, false otherwise



deleteKey
public void deleteKey(int section, String parent, String child) throws NativeException(Code)
Delete the specified key exists in the registry.
Parameters:
  section - The section of the registry
Parameters:
  parentKey - The specified parent key
Parameters:
  childKey - The specified child key true if the specified key was deleted, false otherwise



deleteValue
public void deleteValue(int section, String key, String name) throws NativeException(Code)
Delete the specified value exists in the registry.
Parameters:
  section - The section of the registry
Parameters:
  key - The specified key
Parameters:
  value - The specified value true if the specified value was deleted, false otherwise



get32BitValue
public int get32BitValue(int section, String key, String name) throws NativeException(Code)
Get integer value.
Parameters:
  section - The section of the registry
Parameters:
  key - The specified key
Parameters:
  name - The specified value The value of the name, -1 in case of any error



getBinaryValue
public byte[] getBinaryValue(int section, String key, String name) throws NativeException(Code)
Get binary value.
Parameters:
  section - The section of the registry
Parameters:
  key - The specified key
Parameters:
  name - The specified value The binary value of the name, null in case of any error



getKeyName
public String getKeyName(String key)(Code)

Parameters:
  key -



getKeyParent
public String getKeyParent(String key)(Code)

Parameters:
  key -



getMultiStringValue
public String[] getMultiStringValue(int section, String key, String name) throws NativeException(Code)
Get the array of strings of the specified value
Parameters:
  section - The section of the registry
Parameters:
  key - The specified key
Parameters:
  name - The specified value The multri-string value of the name, null in case of any error



getStringValue
public String getStringValue(int section, String key, String name) throws NativeException(Code)

Parameters:
  section -
Parameters:
  key -
Parameters:
  name -



getStringValue
public String getStringValue(int section, String key, String name, boolean expand) throws NativeException(Code)
Get string value.
Parameters:
  section - The section of the registry
Parameters:
  key - The specified key
Parameters:
  name - The specified value
Parameters:
  expandable - If expandable is true andthe type of the value is REG_EXPAND_SZ the value would be expanded The value of the name, null in case of any error



getSubKeyNames
public String[] getSubKeyNames(int section, String key) throws NativeException(Code)
Get the array of subkey names of the specified key.
Parameters:
  section - The section of the registry
Parameters:
  key - The specified key If the key doesn`t exist or can`t be accessed then return null
Otherwise return the array of subkey names



getSubKeys
public String[] getSubKeys(int section, String key) throws NativeException(Code)



getValueNames
public String[] getValueNames(int section, String key) throws NativeException(Code)
Get the array of values names of the specified key.
Parameters:
  section - The section of the registry
Parameters:
  key - The specified key If the key doesn`t exist or can`t be accessed then return null
Otherwise return the array of value names



getValueType
public int getValueType(int section, String key, String name) throws NativeException(Code)
Returns the type of the value.
Parameters:
  section - The section of the registry
Parameters:
  key - The specified key
Parameters:
  value - The specified value The possible values are:
REG_NONE
REG_SZ
REG_EXPAND_SZ
REG_BINARY
REG_DWORD=REG_DWORD_LITTLE_ENDIAN
REG_DWORD_BIG_ENDIAN
REG_LINK
REG_MULTI_SZ
REG_RESOURCE_LIST
REG_FULL_RESOURCE_DESCRIPTOR
REG_RESOURCE_REQUIREMENTS_LIST
REG_QWORD=REG_QWORD_LITTLE_ENDIAN



keyEmpty
public boolean keyEmpty(int section, String key) throws NativeException(Code)
Checks whether the specified value exists in the registry.
Parameters:
  section - The section of the registry
Parameters:
  key - The specified key
Parameters:
  value - The specified value true if the specified value exists, false otherwise



keyExists
public boolean keyExists(int section, String key) throws NativeException(Code)
Checks whether the specified key exists in the registry (can be read).
Parameters:
  section - The section of the registry
Parameters:
  key - The specified key true if the specified key exists (can be read), false otherwise



keyExists
public boolean keyExists(int section, String parent, String child) throws NativeException(Code)



set32BitValue
public void set32BitValue(int section, String key, String name, int value) throws NativeException(Code)
Set REG_DWORD value.
Parameters:
  section - The section of the registry
Parameters:
  key - The specified key
Parameters:
  name - The specified value
Parameters:
  value - The specified value of the name true if the value was successfully set
false otherwise



setAdditionalValues
public void setAdditionalValues(int section, String key, Map<String, Object> values) throws NativeException(Code)



setBinaryValue
public void setBinaryValue(int section, String key, String name, byte[] value) throws NativeException(Code)
Set binary (REG_BINARY) value.
Parameters:
  section - The section of the registry
Parameters:
  key - The specified key
Parameters:
  name - The specified value
Parameters:
  value - The specified value of the name true if the value was successfully set
false otherwise



setMultiStringValue
public void setMultiStringValue(int section, String key, String name, String[] value) throws NativeException(Code)
Set REG_MULTI_SZ value.
Parameters:
  section - The section of the registry
Parameters:
  key - The specified key
Parameters:
  name - The specified value
Parameters:
  value - The specified value of the name true if the value was successfully set
false otherwise



setNoneValue
public void setNoneValue(int section, String key, String name, byte... bytes) throws NativeException(Code)
Set new value of REG_NONE type
Parameters:
  section - The section of the registry
Parameters:
  key - The specified key
Parameters:
  value - The specified value



setStringValue
public void setStringValue(int section, String key, String name, Object value) throws NativeException(Code)



setStringValue
public void setStringValue(int section, String key, String name, String value) throws NativeException(Code)

Parameters:
  section -
Parameters:
  key -
Parameters:
  name -
Parameters:
  value -



setStringValue
public void setStringValue(int section, String key, String name, String value, boolean expandable) throws NativeException(Code)
Set string value.
Parameters:
  section - The section of the registry
Parameters:
  key - The specified key
Parameters:
  name - The specified value
Parameters:
  value - The specified value of the name
Parameters:
  expandable - If expandable is true then the type would beREG_EXPAND_SZ or REG_SZ otherwise true if the value was successfully set
false otherwise



valueExists
public boolean valueExists(int section, String key, String name) throws NativeException(Code)
Checks whether the specified value exists in the registry.
Parameters:
  section - The section of the registry
Parameters:
  key - The specified key
Parameters:
  value - The specified value true if the specified value exists, false otherwise



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.