[Skip Navigation] [CSUSB] / [CNS] / [Comp Sci Dept] / [R J Botting] / [Samples] / java.lang.System
[Index] [Contents] [Source Text] [About] [Notation] [Copyright] [Comment/Contact] [Search ]
Tue Sep 18 15:25:53 PDT 2007

Contents


    <a name="setSecurityManager"><b>setSecurityManager</b></a>
  1. <dd> Sets the System security. This value can only be set once.
  2. <dl>
  3. <dt> <b>Parameters:</b>
  4. <dd> s - the security manager
  5. <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
  6. <dd> If the SecurityManager has already been set.
  7. </dl> </dl> <a name="getSecurityManager"><b>getSecurityManager</b></a> <pre>
  8. public static <a href="java.lang.SecurityManager.html#_top_">SecurityManager</a> getSecurityManager() </pre> <dl>
  9. <dd> Gets the system security interface. </dl> <a name="currentTimeMillis"><b>currentTimeMillis</b></a> <pre>
  10. public static long currentTimeMillis() </pre> <dl>
  11. <dd> Returns the current time in milliseconds GMT since the epoch (00:00:00 UTC, January 1, 1970). It is a signed 64 bit integer, and so it will not overflow until the year 292280995.
  12. <dl>
  13. <dt> <b>See Also:</b>
  14. <dd> <a href="java.util.Date.html#_top_">Date</a>
  15. </dl> </dl> </pre> <dl>
  16. <dd> Copies an array from the source array, beginning at the specified position, to the specified position of the destination array. This method does not allocate memory for the destination array. The memory must already be allocated.
  17. <dl>
  18. <dt> <b>Parameters:</b>
  19. <dd> src - the source data
  20. <dd> srcpos - start position in the source data
  21. <dd> dest - the destination
  22. <dd> destpos - start position in the destination data
  23. <dd> length - the number of array elements to be copied
  24. <dt> <b>Throws:</b> <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
  25. <dd> If copy would cause
  26. access of data outside array bounds.
  27. <dt> <b>Throws:</b> <a href="java.lang.ArrayStoreException.html#_top_">ArrayStoreException</a>
  28. <dd> If an element in the src array could
  29. could not be stored into the destination array due
  30. to a type mismatch
  31. </dl> </dl> <a name="getProperties()"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a> <a name="getProperties"><b>getProperties</b></a> <pre>
  32. public static <a href="java.util.Properties.html#_top_">Properties</a> getProperties() </pre> <dl>
  33. <dd> Gets the System properties. </dl> <a name="setProperties(java.util.Properties)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a> <a name="setProperties"><b>setProperties</b></a> <pre>
  34. public static void setProperties(<a href="java.util.Properties.html#_top_">Properties</a> props) </pre> <dl>
  35. <dd> Sets the System properties to the specified properties.
  36. <dl>
  37. <dt> <b>Parameters:</b>
  38. <dd> props - the properties to be set
  39. </dl> </dl> <a name="getProperty(java.lang.String)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a> <a name="getProperty"><b>getProperty</b></a> <pre>
  40. public static <a href="java.lang.String.html#_top_">String</a> getProperty(<a href="java.lang.String.html#_top_">String</a> key) </pre> <dl>
  41. <dd> Gets the System property indicated by the specified key.
  42. <dl>
  43. <dt> <b>Parameters:</b>
  44. <dd> key - the name of the system property
  45. </dl> </dl> <a name="getProperty(java.lang.String, java.lang.String)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a> <a name="getProperty"><b>getProperty</b></a> <pre>
  46. public static <a href="java.lang.String.html#_top_">String</a> getProperty(<a href="java.lang.String.html#_top_">String</a> key,
  47. <a href="java.lang.String.html#_top_">String</a> def) </pre> <dl>
  48. <dd> Gets the System property indicated by the specified key and def.
  49. <dl>
  50. <dt> <b>Parameters:</b>
  51. <dd> key - the name of the system property
  52. <dd> def - the default value to use if this property is not set
  53. </dl> </dl> <a name="getenv(java.lang.String)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a> <a name="getenv"><b>getenv</b></a> <pre>
  54. public static <a href="java.lang.String.html#_top_">String</a> getenv(<a href="java.lang.String.html#_top_">String</a> name) </pre> <dl>
  55. <dd> Obsolete. Gets an environment variable. An environment variable is a system dependent external variable that has a string value.
  56. <dl>
  57. <dt> <b>Parameters:</b>
  58. <dd> name - the name of the environment variable
  59. <dt> <b>Returns:</b>
  60. <dd> the value of the variable, or null if the variable is
  61. not defined.
  62. </dl> </dl> <a name="exit(int)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a> <a name="exit"><b>exit</b></a> <pre>
  63. public static void exit(int status) </pre> <dl>
  64. <dd> Exits the virtual machine with an exit code. This method does not return, use with caution.
  65. <dl>
  66. <dt> <b>Parameters:</b>
  67. <dd> status - exit status, 0 if successful, other values indicate
  68. various error types.
  69. <dt> <b>See Also:</b>
  70. <dd> <a href="java.lang.Runtime.html#exit">exit</a>
  71. </dl> </dl> <a name="gc()"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a> <a name="gc"><b>gc</b></a> <pre>
  72. public static void gc() </pre> <dl>
  73. <dd> Runs the garbage collector.
  74. <dl>
  75. <dt> <b>See Also:</b>
  76. <dd> <a href="java.lang.Runtime.html#gc">gc</a>
  77. </dl> </dl> <a name="runFinalization()"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a> <a name="runFinalization"><b>runFinalization</b></a> <pre>
  78. public static void runFinalization() </pre> <dl>
  79. <dd> Runs the finalization methods of any objects pending finalization.
  80. <dl>
  81. <dt> <b>See Also:</b>
  82. <dd> <a href="java.lang.Runtime.html#gc">gc</a>
  83. </dl> </dl> <a name="load(java.lang.String)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a> <a name="load"><b>load</b></a> <pre>
  84. public static void load(<a href="java.lang.String.html#_top_">String</a> filename) </pre> <dl>
  85. <dd> Loads a dynamic library, given a complete path name.
  86. <dl>
  87. <dt> <b>Parameters:</b>
  88. <dd> filename - the file to load
  89. <dt> <b>Throws:</b> <a href="java.lang.UnsatisfiedLinkError.html#_top_">UnsatisfiedLinkError</a>
  90. <dd> If the file does not exist.
  91. <dt> <b>See Also:</b>
  92. <dd> <a href="java.lang.Runtime.html#load">load</a>
  93. </dl> </dl> <a name="loadLibrary(java.lang.String)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a> <a name="loadLibrary"><b>loadLibrary</b></a> <pre>
  94. public static void loadLibrary(<a href="java.lang.String.html#_top_">String</a> libname) </pre> <dl>
  95. <dd> Loads a dynamic library with the specified library name.
  96. <dl>
  97. <dt> <b>Parameters:</b>
  98. <dd> libname - the name of the library
  99. <dt> <b>Throws:</b> <a href="java.lang.UnsatisfiedLinkError.html#_top_">UnsatisfiedLinkError</a>
  100. <dd> If the library does not exist.
  101. <dt> <b>See Also:</b>
  102. <dd> <a href="java.lang.Runtime.html#loadLibrary">loadLibrary</a>
  103. </dl> </dl> <hr> <pre>

End