Java Doc for Registry.java in  » Sevlet-Container » apache-tomcat-6.0.14 » org » apache » tomcat » jni » 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 » Sevlet Container » apache tomcat 6.0.14 » org.apache.tomcat.jni 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.tomcat.jni.Registry

Registry
public class Registry (Code)
Windows Registy support
author:
   Mladen Turk
version:
   $Revision: 467222 $, $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $


Field Summary
final public static  intHKEY_CLASSES_ROOT
    
final public static  intHKEY_CURRENT_CONFIG
    
final public static  intHKEY_CURRENT_USER
    
final public static  intHKEY_LOCAL_MACHINE
    
final public static  intHKEY_USERS
    
final public static  intKEY_ALL_ACCESS
    
final public static  intKEY_CREATE_LINK
    
final public static  intKEY_CREATE_SUB_KEY
    
final public static  intKEY_ENUMERATE_SUB_KEYS
    
final public static  intKEY_EXECUTE
    
final public static  intKEY_NOTIFY
    
final public static  intKEY_QUERY_VALUE
    
final public static  intKEY_READ
    
final public static  intKEY_SET_VALUE
    
final public static  intKEY_WOW64_32KEY
    
final public static  intKEY_WOW64_64KEY
    
final public static  intKEY_WRITE
    
final public static  intREG_BINARY
    
final public static  intREG_DWORD
    
final public static  intREG_EXPAND_SZ
    
final public static  intREG_MULTI_SZ
    
final public static  intREG_QWORD
    
final public static  intREG_SZ
    


Method Summary
native public static  intclose(long key)
     Close the specified Registry key.
native public static  longcreate(int root, String name, int sam, long pool)
     Create or open a Registry Key.
Parameters:
  name - Registry Subkey to open
Parameters:
  root - Root key, one of HKEY_*
Parameters:
  som - Access mask that specifies the access rights for the key.
native public static  intdeleteKey(int root, String name, boolean onlyIfEmpty)
    
native public static  intdeleteValue(long key, String name)
    
native public static  String[]enumKeys(long key)
    
native public static  String[]enumValues(long key)
    
native public static  intgetSize(long key, String name)
     Get the Registry key length.
native public static  intgetType(long key, String name)
     Get the Registry key type.
native public static  String[]getValueA(long key, String name)
    
native public static  byte[]getValueB(long key, String name)
    
native public static  intgetValueI(long key, String name)
    
native public static  longgetValueJ(long key, String name)
    
native public static  StringgetValueS(long key, String name)
    
native public static  longopen(int root, String name, int sam, long pool)
     Opens the specified Registry Key.
Parameters:
  name - Registry Subkey to open
Parameters:
  root - Root key, one of HKEY_*
Parameters:
  som - Access mask that specifies the access rights for the key.
native public static  intsetValueA(long key, String name, String[] val)
    
native public static  intsetValueB(long key, String name, byte[] val)
    
native public static  intsetValueE(long key, String name, String val)
    
native public static  intsetValueI(long key, String name, int val)
    
native public static  intsetValueJ(long key, String name, int val)
    
native public static  intsetValueS(long key, String name, String val)
    

Field Detail
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_LOCAL_MACHINE
final public static int HKEY_LOCAL_MACHINE(Code)



HKEY_USERS
final public static int HKEY_USERS(Code)



KEY_ALL_ACCESS
final public static int KEY_ALL_ACCESS(Code)



KEY_CREATE_LINK
final public static int KEY_CREATE_LINK(Code)



KEY_CREATE_SUB_KEY
final public static int KEY_CREATE_SUB_KEY(Code)



KEY_ENUMERATE_SUB_KEYS
final public static int KEY_ENUMERATE_SUB_KEYS(Code)



KEY_EXECUTE
final public static int KEY_EXECUTE(Code)



KEY_NOTIFY
final public static int KEY_NOTIFY(Code)



KEY_QUERY_VALUE
final public static int KEY_QUERY_VALUE(Code)



KEY_READ
final public static int KEY_READ(Code)



KEY_SET_VALUE
final public static int KEY_SET_VALUE(Code)



KEY_WOW64_32KEY
final public static int KEY_WOW64_32KEY(Code)



KEY_WOW64_64KEY
final public static int KEY_WOW64_64KEY(Code)



KEY_WRITE
final public static int KEY_WRITE(Code)



REG_BINARY
final public static int REG_BINARY(Code)



REG_DWORD
final public static int REG_DWORD(Code)



REG_EXPAND_SZ
final public static int REG_EXPAND_SZ(Code)



REG_MULTI_SZ
final public static int REG_MULTI_SZ(Code)



REG_QWORD
final public static int REG_QWORD(Code)



REG_SZ
final public static int REG_SZ(Code)





Method Detail
close
native public static int close(long key)(Code)
Close the specified Registry key.
Parameters:
  key - The Registry key descriptor to close.



create
native public static long create(int root, String name, int sam, long pool) throws Error(Code)
Create or open a Registry Key.
Parameters:
  name - Registry Subkey to open
Parameters:
  root - Root key, one of HKEY_*
Parameters:
  som - Access mask that specifies the access rights for the key. Opened Registry key



deleteKey
native public static int deleteKey(int root, String name, boolean onlyIfEmpty)(Code)
Delete the Registry subkey
Parameters:
  root - Root key, one of HKEY_*
Parameters:
  name - Subkey to delete
Parameters:
  onlyIfEmpty - If true will not delete a key ifit contains any subkeys or values If the function succeeds, the return value is 0



deleteValue
native public static int deleteValue(long key, String name)(Code)
Delete the Registry value
Parameters:
  key - The Registry key descriptor to use.
Parameters:
  name - The name of the value to delete If the function succeeds, the return value is 0



enumKeys
native public static String[] enumKeys(long key) throws Error(Code)
Enumerate the Registry subkeys
Parameters:
  key - The Registry key descriptor to use.
Parameters:
  name - The name of the value to query Array of all subkey names



enumValues
native public static String[] enumValues(long key) throws Error(Code)
Enumerate the Registry values
Parameters:
  key - The Registry key descriptor to use.
Parameters:
  name - The name of the value to query Array of all value names



getSize
native public static int getSize(long key, String name)(Code)
Get the Registry key length.
Parameters:
  key - The Registry key descriptor to use.
Parameters:
  name - The name of the value to query Value size or negative error value



getType
native public static int getType(long key, String name)(Code)
Get the Registry key type.
Parameters:
  key - The Registry key descriptor to use.
Parameters:
  name - The name of the value to query Value type or negative error value



getValueA
native public static String[] getValueA(long key, String name) throws Error(Code)
Get the Registry value for REG_MULTI_SZ
Parameters:
  key - The Registry key descriptor to use.
Parameters:
  name - The name of the value to query Registry key value



getValueB
native public static byte[] getValueB(long key, String name) throws Error(Code)
Get the Registry value for REG_BINARY
Parameters:
  key - The Registry key descriptor to use.
Parameters:
  name - The name of the value to query Registry key value



getValueI
native public static int getValueI(long key, String name) throws Error(Code)
Get the Registry value for REG_DWORD
Parameters:
  key - The Registry key descriptor to use.
Parameters:
  name - The name of the value to query Registry key value



getValueJ
native public static long getValueJ(long key, String name) throws Error(Code)
Get the Registry value for REG_QWORD or REG_DWORD
Parameters:
  key - The Registry key descriptor to use.
Parameters:
  name - The name of the value to query Registry key value



getValueS
native public static String getValueS(long key, String name) throws Error(Code)
Get the Registry value for REG_SZ or REG_EXPAND_SZ
Parameters:
  key - The Registry key descriptor to use.
Parameters:
  name - The name of the value to query Registry key value



open
native public static long open(int root, String name, int sam, long pool) throws Error(Code)
Opens the specified Registry Key.
Parameters:
  name - Registry Subkey to open
Parameters:
  root - Root key, one of HKEY_*
Parameters:
  som - Access mask that specifies the access rights for the key. Opened Registry key



setValueA
native public static int setValueA(long key, String name, String[] val)(Code)
Set the Registry value for REG_MULTI_SZ
Parameters:
  key - The Registry key descriptor to use.
Parameters:
  name - The name of the value to set
Parameters:
  val - The the value to set If the function succeeds, the return value is 0



setValueB
native public static int setValueB(long key, String name, byte[] val)(Code)
Set the Registry value for REG_BINARY
Parameters:
  key - The Registry key descriptor to use.
Parameters:
  name - The name of the value to set
Parameters:
  val - The the value to set If the function succeeds, the return value is 0



setValueE
native public static int setValueE(long key, String name, String val)(Code)
Set the Registry value for REG_EXPAND_SZ
Parameters:
  key - The Registry key descriptor to use.
Parameters:
  name - The name of the value to set
Parameters:
  val - The the value to set If the function succeeds, the return value is 0



setValueI
native public static int setValueI(long key, String name, int val)(Code)
Set the Registry value for REG_DWORD
Parameters:
  key - The Registry key descriptor to use.
Parameters:
  name - The name of the value to set
Parameters:
  val - The the value to set If the function succeeds, the return value is 0



setValueJ
native public static int setValueJ(long key, String name, int val)(Code)
Set the Registry value for REG_QWORD
Parameters:
  key - The Registry key descriptor to use.
Parameters:
  name - The name of the value to set
Parameters:
  val - The the value to set If the function succeeds, the return value is 0



setValueS
native public static int setValueS(long key, String name, String val)(Code)
Set the Registry value for REG_SZ
Parameters:
  key - The Registry key descriptor to use.
Parameters:
  name - The name of the value to set
Parameters:
  val - The the value to set If the function succeeds, the return value is 0



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.