Enable or disable finalization on exit; doing so specifies that the
finalizers of all objects that have finalizers that have not yet been
automatically invoked are to be run before the Java runtime exits.
public static void runFinalizersOnExit(boolean value)
Enable or disable finalization on exit; doing so specifies that the
finalizers of all objects that have finalizers that have not yet been
automatically invoked are to be run before the Java runtime exits.
By default, finalization on exit is disabled. An invocation of
the runFinalizersOnExit method is permitted only if the caller is
allowed to exit, and is otherwise rejected by the security manager.
Executes the specified string command in a separate process.
The command argument is parsed into tokens and then
executed as a command in a separate process. This method has
exactly the same effect as exec(command, null).
Executes the specified string command in a separate process with the
specified environment.
This method breaks the command string into tokens and
creates a new array cmdarray containing the tokens; it
then performs the call exec(cmdarray, envp).
Parameters:
command - a specified system command.
envp - array containing environment in format
name=value
Executes the specified command and arguments in a separate process.
The command specified by the tokens in cmdarray is
executed as a command in a separate process. This has exactly the
same effect as exec(cmdarray, null).
Parameters:
cmdarray - array containing the command to call and
its arguments.
Executes the specified command and arguments in a separate process
with the specified environment.
If there is a security manager, its checkExec method
is called with the first component of the array
cmdarray as its argument. This may result in a security
exception.
Given an array of strings cmdarray, representing the
tokens of a command line, and an array of strings envp,
representing an "environment" that defines system
properties, this method creates a new process in which to execute
the specified command.
Parameters:
cmdarray - array containing the command to call and
its arguments.
envp - array containing environment in format
name=value.
Returns the amount of free memory in the system. The value returned
by this method is always less than the value returned by the
totalMemory method. Calling the gc method may
result in increasing the value returned by freeMemory.
Returns:
an approximation to the total amount of memory currently
available for future allocated objects, measured in bytes.
Runs the garbage collector.
Calling this method suggests that the Java Virtual Machine expend
effort toward recycling unused objects in order to make the memory
they currently occupy available for quick reuse. When control
returns from the method call, the Java Virtual Machine has made
its best effort to recycle all unused objects.
The name gc stands for "garbage
collector". The Java Virtual Machine performs this recycling
process automatically as needed even if the gc method
is not invoked explicitly.
Runs the finalization methods of any objects pending finalization.
Calling this method suggests that the Java Virtual Machine expend
effort toward running the finalize methods of objects
that have been found to be discarded but whose finalize
methods have not yet been run. When control returns from the
method call, the Java Virtual Machine has made a best effort to
complete all outstanding finalizations.
The Java Virtual Machine performs the finalization process
automatically as needed if the runFinalization method
is not invoked explicitly.
Enables/Disables tracing of instructions.
If the boolean argument is true, this
method asks the Java Virtual Machine to print out a detailed trace
of each instruction in the Java Virtual Machine as it is executed.
The virtual machine may ignore this request if it does not support
this feature. The destination of the trace output is system
dependent.
If the boolean argument is false, this
method causes the Java Virtual Machine to stop performing the
detailed instruction trace it is performing.
Parameters:
on - true to enable instruction tracing;
false to disable this feature.
Enables/Disables tracing of method calls.
If the boolean argument is true, this
method asks the Java Virtual Machine to print out a detailed trace
of each method in the Java Virtual Machine as it is called. The
virtual machine may ignore this request if it does not support
this feature. The destination of the trace output is system dependent.
If the boolean argument is false, this
method causes the Java Virtual Machine to stop performing the
detailed method trace it is performing.
Parameters:
on - true to enable instruction tracing;
false to disable this feature.
Loads the specified filename as a dynamic library. The filename
argument must be a complete pathname.
From java_g it will automagically insert "_g" before the
".so" (for example
Runtime.getRuntime().load("/home/avh/lib/libX11.so");).
If there is a security manager, its checkLink method
is called with the filename as its argument. This may
result in a security exception.
Note: getLocalizedInputStream() is deprecated.As of JDK 1.1, the preferred way translate a byte
stream in the local encoding into a character stream in Unicode is via
the InputStreamReader and BufferedReader
classes.
Creates a localized version of an input stream. This method takes
an InputStream and returns an InputStream
equivalent to the argument in all respects except that it is
localized: as characters in the local character set are read from
the stream, they are automatically converted from the local
character set to Unicode.
If the argument is already a localized stream, it may be returned
as the result.
Note: getLocalizedOutputStream() is deprecated.As of JDK 1.1, the preferred way to translate a
Unicode character stream into a byte stream in the local encoding is via
the OutputStreamWriter, BufferedWriter, and
PrintWriter classes.
Creates a localized version of an output stream. This method
takes an OutputStream and returns an
OutputStream equivalent to the argument in all respects
except that it is localized: as Unicode characters are written to
the stream, they are automatically converted to the local
character set.
If the argument is already a localized stream, it may be returned
as the result.
Submit a bug or feature - Version 1.1.8 of Java Platform API Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1995-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.