52 |
* general environment. As such, all methods are static. |
* general environment. As such, all methods are static. |
53 |
* |
* |
54 |
* @author John Keiser |
* @author John Keiser |
55 |
* @author Eric Blake <ebb9@email.byu.edu> |
* @author Eric Blake (ebb9@email.byu.edu) |
56 |
* @since 1.0 |
* @since 1.0 |
57 |
* @status still missing 1.4 functionality |
* @status still missing 1.4 functionality |
58 |
*/ |
*/ |
255 |
* other processes or files. That should all be transparent to you, |
* other processes or files. That should all be transparent to you, |
256 |
* however. |
* however. |
257 |
*/ |
*/ |
258 |
public static final InputStream in = VMSystem.makeStandardInputStream(); |
public static final InputStream in = VMSystem.makeStandardInputStream(); |
259 |
|
|
260 |
/** |
/** |
261 |
* The standard output PrintStream. This is assigned at startup and |
* The standard output PrintStream. This is assigned at startup and |
267 |
* output to other processes or files. That should all be transparent to |
* output to other processes or files. That should all be transparent to |
268 |
* you, however. |
* you, however. |
269 |
*/ |
*/ |
270 |
public static final PrintStream out = VMSystem.makeStandardOutputStream(); |
public static final PrintStream out = VMSystem.makeStandardOutputStream(); |
271 |
|
|
272 |
/** |
/** |
273 |
* The standard output PrintStream. This is assigned at startup and |
* The standard output PrintStream. This is assigned at startup and |
279 |
* output to other processes or files. That should all be transparent to |
* output to other processes or files. That should all be transparent to |
280 |
* you, however. |
* you, however. |
281 |
*/ |
*/ |
282 |
public static final PrintStream err = VMSystem.makeStandardErrorStream(); |
public static final PrintStream err = VMSystem.makeStandardErrorStream(); |
283 |
|
|
284 |
/** |
/** |
285 |
* This class is uninstantiable. |
* This class is uninstantiable. |
354 |
* @param sm the new SecurityManager |
* @param sm the new SecurityManager |
355 |
* @throws SecurityException if permission is denied |
* @throws SecurityException if permission is denied |
356 |
*/ |
*/ |
357 |
public synchronized static void setSecurityManager(SecurityManager sm) |
public static synchronized void setSecurityManager(SecurityManager sm) |
358 |
{ |
{ |
359 |
// Implementation note: the field lives in Runtime because of bootstrap |
// Implementation note: the field lives in Runtime because of bootstrap |
360 |
// initialization issues. This method is synchronized so that no other |
// initialization issues. This method is synchronized so that no other |
386 |
* @return the current time |
* @return the current time |
387 |
* @see java.util.Date |
* @see java.util.Date |
388 |
*/ |
*/ |
389 |
public static long currentTimeMillis() { |
public static long currentTimeMillis() |
390 |
return VMSystem.currentTimeMillis(); |
{ |
391 |
|
return VMSystem.currentTimeMillis(); |
392 |
} |
} |
393 |
|
|
394 |
/** |
/** |