Classe java.lang.Runtime


Every Java application has a single instance of class Runtime that allows the application to interface with the environment in which the application is running. The current runtime can be obtained from the getRuntime method.

Cette classe ne peut être instanciée.

package java.lang;

import java.io.*;
import java.util.StringTokenizer;

public class Runtime {		// (>JDK1.0)

    // Méthodes de classe
	public static Runtime getRuntime();			// (>JDK1.0)
	public static void runFinalizersOnExit(boolean value);	// (>JDK1.1)

	public Process exec(String cmdarray[])
		throws IOException;				// (>JDK1.0)
	public Process exec(String cmdarray[], String envp[])
		throws IOException;				// (>JDK1.0)
	public Process exec(String command)
		throws IOException;				// (>JDK1.0)
	public Process exec(String command, String envp[])
		throws IOException;				// (>JDK1.0)
	public void exit(int status);				// (>JDK1.0)
	public native long freeMemory();			// (>JDK1.0)
	public native void gc();				// (>JDK1.0)
		// obsolète voir InputStreamReader et BufferedReader
	public InputStream getLocalizedInputStream(InputStream in);	// (>JDK1.0)
		// obsolète voir OutputStreamWriter, BufferedWriter, et PrintWriter
	public OutputStream getLocalizedOutputStream(OutputStream out);	// (>JDK1.0)
	public synchronized void load(String filename);		// (>JDK1.0)
	public synchronized void loadLibrary(String libname);	// (>JDK1.0)
	public void runFinalization();				// (>JDK1.0)
	public long totalMemory();				// (>JDK1.0)
	public void traceInstructions(boolean on);		// (>JDK1.0)
	public void traceMethodCalls(boolean on);		// (>JDK1.0)
}

Christophe Merlet
redfox@redfoxcenter.org
©Tous droits réservés
3 janvier 1999