Java Doc for Registry.java in  » Installer » VAInstall » com » ice » jni » registry » 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 » Installer » VAInstall » com.ice.jni.registry 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.ice.jni.registry.Registry

Registry
public class Registry (Code)
The Registry class provides is used to load the native library DLL, as well as a placeholder for the top level keys, error codes, and utility methods.


Field Summary
final public static  intERROR_ACCESS_DENIED
    
final public static  intERROR_BADDB
    
final public static  intERROR_BADKEY
    
final public static  intERROR_CALL_NOT_IMPLEMENTED
    
final public static  intERROR_CANTOPEN
    
final public static  intERROR_CANTREAD
    
final public static  intERROR_CANTWRITE
    
final public static  intERROR_FILE_NOT_FOUND
    
final public static  intERROR_INSUFFICIENT_BUFFER
    
final public static  intERROR_INVALID_HANDLE
    
final public static  intERROR_INVALID_PARAMETER
    
final public static  intERROR_KEY_DELETED
    
final public static  intERROR_LOCK_FAILED
    
final public static  intERROR_MORE_DATA
    
final public static  intERROR_NOT_REGISTRY_FILE
    
final public static  intERROR_NO_MORE_ITEMS
    
final public static  intERROR_REGISTRY_CORRUPT
    
final public static  intERROR_REGISTRY_IO_FAILED
    
final public static  intERROR_REGISTRY_RECOVERED
    
final public static  intERROR_SUCCESS
     These are the Registry API error codes, which can be returned via the RegistryException.
final public static  intERROR_TRANSFER_TOO_LONG
    
public static  RegistryKeyHKEY_CLASSES_ROOT
     The following statics are the top level keys.
public static  RegistryKeyHKEY_CURRENT_CONFIG
    
public static  RegistryKeyHKEY_CURRENT_USER
    
public static  RegistryKeyHKEY_DYN_DATA
    
public static  RegistryKeyHKEY_LOCAL_MACHINE
    
public static  RegistryKeyHKEY_PERFORMANCE_DATA
    
public static  RegistryKeyHKEY_USERS
    
public  booleandebugLevel
     If true, debug the fv parameters and computation.
public static  StringdllFile
    


Method Summary
public static  voidexportRegistryKey(String pathName, RegistryKey key, boolean descend)
     Export the textual definition for a registry key to a file.
public static  StringgetErrorMessage(int errCode)
     Get the description of a Registry error code.
public static  RegistryKeygetTopLevelKey(String keyName)
     Get a top level key by name using the top level key Hashtable.
Parameters:
  keyName - The name of the top level key.
public static  voidmain(String argv)
     The main() method is used to test the Registry package.
public static  RegistryKeyopenSubkey(RegistryKey topKey, String keyName, int access)
     Open a subkey of a given top level key.
Parameters:
  topKey - The top level key containing the subkey.
Parameters:
  keyName - The subkey's name.
Parameters:
  access - The access flag for the newly opened key.
public static  voidsetDllFile(String _dllFile)
    
public static  voidsubMain(String argv)
     The actual main method, which is called for each command.
public static  voidusage(String message)
     Print the usage/help information.

Field Detail
ERROR_ACCESS_DENIED
final public static int ERROR_ACCESS_DENIED(Code)



ERROR_BADDB
final public static int ERROR_BADDB(Code)



ERROR_BADKEY
final public static int ERROR_BADKEY(Code)



ERROR_CALL_NOT_IMPLEMENTED
final public static int ERROR_CALL_NOT_IMPLEMENTED(Code)



ERROR_CANTOPEN
final public static int ERROR_CANTOPEN(Code)



ERROR_CANTREAD
final public static int ERROR_CANTREAD(Code)



ERROR_CANTWRITE
final public static int ERROR_CANTWRITE(Code)



ERROR_FILE_NOT_FOUND
final public static int ERROR_FILE_NOT_FOUND(Code)



ERROR_INSUFFICIENT_BUFFER
final public static int ERROR_INSUFFICIENT_BUFFER(Code)



ERROR_INVALID_HANDLE
final public static int ERROR_INVALID_HANDLE(Code)



ERROR_INVALID_PARAMETER
final public static int ERROR_INVALID_PARAMETER(Code)



ERROR_KEY_DELETED
final public static int ERROR_KEY_DELETED(Code)



ERROR_LOCK_FAILED
final public static int ERROR_LOCK_FAILED(Code)



ERROR_MORE_DATA
final public static int ERROR_MORE_DATA(Code)



ERROR_NOT_REGISTRY_FILE
final public static int ERROR_NOT_REGISTRY_FILE(Code)



ERROR_NO_MORE_ITEMS
final public static int ERROR_NO_MORE_ITEMS(Code)



ERROR_REGISTRY_CORRUPT
final public static int ERROR_REGISTRY_CORRUPT(Code)



ERROR_REGISTRY_IO_FAILED
final public static int ERROR_REGISTRY_IO_FAILED(Code)



ERROR_REGISTRY_RECOVERED
final public static int ERROR_REGISTRY_RECOVERED(Code)



ERROR_SUCCESS
final public static int ERROR_SUCCESS(Code)
These are the Registry API error codes, which can be returned via the RegistryException.



ERROR_TRANSFER_TOO_LONG
final public static int ERROR_TRANSFER_TOO_LONG(Code)



HKEY_CLASSES_ROOT
public static RegistryKey HKEY_CLASSES_ROOT(Code)
The following statics are the top level keys. Without these, there is no way to get "into" the registry, since the RegOpenSubkey() call requires an existing key which contains the subkey.



HKEY_CURRENT_CONFIG
public static RegistryKey HKEY_CURRENT_CONFIG(Code)



HKEY_CURRENT_USER
public static RegistryKey HKEY_CURRENT_USER(Code)



HKEY_DYN_DATA
public static RegistryKey HKEY_DYN_DATA(Code)



HKEY_LOCAL_MACHINE
public static RegistryKey HKEY_LOCAL_MACHINE(Code)



HKEY_PERFORMANCE_DATA
public static RegistryKey HKEY_PERFORMANCE_DATA(Code)



HKEY_USERS
public static RegistryKey HKEY_USERS(Code)



debugLevel
public boolean debugLevel(Code)
If true, debug the fv parameters and computation.



dllFile
public static String dllFile(Code)
VAInstall change : add dllFile VAInstall: dllFile must be set by AbstractInstall





Method Detail
exportRegistryKey
public static void exportRegistryKey(String pathName, RegistryKey key, boolean descend) throws java.io.IOException, NoSuchKeyException, RegistryException(Code)
Export the textual definition for a registry key to a file. The resulting file can be re-loaded via RegEdit.
Parameters:
  pathName - The pathname of the file into which to export.
Parameters:
  key - The registry key definition to export.
Parameters:
  descend - If true, descend and export all subkeys.
exception:
  NoSuchKeyException - Thrown by openSubKey().
exception:
  RegistryException - Any other registry API error.



getErrorMessage
public static String getErrorMessage(int errCode)(Code)
Get the description of a Registry error code.
Parameters:
  errCode - The error code from a RegistryException The description of the error code.



getTopLevelKey
public static RegistryKey getTopLevelKey(String keyName)(Code)
Get a top level key by name using the top level key Hashtable.
Parameters:
  keyName - The name of the top level key. The top level RegistryKey, or null if unknown keyName.
See Also:   topLevelKeys



main
public static void main(String argv)(Code)
The main() method is used to test the Registry package.



openSubkey
public static RegistryKey openSubkey(RegistryKey topKey, String keyName, int access)(Code)
Open a subkey of a given top level key.
Parameters:
  topKey - The top level key containing the subkey.
Parameters:
  keyName - The subkey's name.
Parameters:
  access - The access flag for the newly opened key. The newly opened RegistryKey.
See Also:   RegistryKey



setDllFile
public static void setDllFile(String _dllFile)(Code)



subMain
public static void subMain(String argv)(Code)
The actual main method, which is called for each command.



usage
public static void usage(String message)(Code)
Print the usage/help information.



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.