36 |
obligated to do so. If you do not wish to do so, delete this |
obligated to do so. If you do not wish to do so, delete this |
37 |
exception statement from your version. */ |
exception statement from your version. */ |
38 |
|
|
|
|
|
39 |
package java.lang; |
package java.lang; |
40 |
|
|
41 |
import gnu.classpath.Configuration; |
import gnu.classpath.Configuration; |
|
|
|
42 |
import java.io.InputStream; |
import java.io.InputStream; |
43 |
import java.io.PrintStream; |
import java.io.PrintStream; |
44 |
import java.util.Properties; |
import java.util.Properties; |
49 |
* general environment. As such, all methods are static. |
* general environment. As such, all methods are static. |
50 |
* |
* |
51 |
* @author John Keiser |
* @author John Keiser |
52 |
* @author Eric Blake <ebb9@email.byu.edu> |
* @author Eric Blake (ebb9@email.byu.edu) |
53 |
* @since 1.0 |
* @since 1.0 |
54 |
* @status still missing 1.4 functionality |
* @status still missing 1.4 functionality |
55 |
*/ |
*/ |
252 |
* other processes or files. That should all be transparent to you, |
* other processes or files. That should all be transparent to you, |
253 |
* however. |
* however. |
254 |
*/ |
*/ |
255 |
public static final InputStream in = VMSystem.makeStandardInputStream(); |
public static final InputStream in = VMSystem.makeStandardInputStream(); |
256 |
|
|
257 |
/** |
/** |
258 |
* The standard output PrintStream. This is assigned at startup and |
* The standard output PrintStream. This is assigned at startup and |
264 |
* output to other processes or files. That should all be transparent to |
* output to other processes or files. That should all be transparent to |
265 |
* you, however. |
* you, however. |
266 |
*/ |
*/ |
267 |
public static final PrintStream out = VMSystem.makeStandardOutputStream(); |
public static final PrintStream out = VMSystem.makeStandardOutputStream(); |
268 |
|
|
269 |
/** |
/** |
270 |
* The standard output PrintStream. This is assigned at startup and |
* The standard output PrintStream. This is assigned at startup and |
276 |
* output to other processes or files. That should all be transparent to |
* output to other processes or files. That should all be transparent to |
277 |
* you, however. |
* you, however. |
278 |
*/ |
*/ |
279 |
public static final PrintStream err = VMSystem.makeStandardErrorStream(); |
public static final PrintStream err = VMSystem.makeStandardErrorStream(); |
280 |
|
|
281 |
/** |
/** |
282 |
* This class is uninstantiable. |
* This class is uninstantiable. |
351 |
* @param sm the new SecurityManager |
* @param sm the new SecurityManager |
352 |
* @throws SecurityException if permission is denied |
* @throws SecurityException if permission is denied |
353 |
*/ |
*/ |
354 |
public synchronized static void setSecurityManager(SecurityManager sm) |
public static synchronized void setSecurityManager(SecurityManager sm) |
355 |
{ |
{ |
356 |
// Implementation note: the field lives in Runtime because of bootstrap |
// Implementation note: the field lives in Runtime because of bootstrap |
357 |
// initialization issues. This method is synchronized so that no other |
// initialization issues. This method is synchronized so that no other |
383 |
* @return the current time |
* @return the current time |
384 |
* @see java.util.Date |
* @see java.util.Date |
385 |
*/ |
*/ |
386 |
public static long currentTimeMillis() { |
public static long currentTimeMillis() |
387 |
return VMSystem.currentTimeMillis(); |
{ |
388 |
|
return VMSystem.currentTimeMillis(); |
389 |
} |
} |
390 |
|
|
391 |
/** |
/** |