/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This source file is part of SableVM classlib-stubs. * * * * See the file "LICENSE" for the copyright information and for * * the terms and conditions for copying, distribution and * * modification of this source file. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ package java.lang; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; public class Runtime extends Object { native public static Runtime getRuntime(); native public void exit(int status); native public void addShutdownHook(Thread hook); native public boolean removeShutdownHook(Thread hook); native public void halt(int status); @Deprecated native public static void runFinalizersOnExit(boolean value); native public Process exec(String command) throws IOException; native public Process exec(String command, String[] envp) throws IOException; native public Process exec(String command, String[] envp, File dir) throws IOException; native public Process exec(String[] cmdarray) throws IOException; native public Process exec(String[] cmdarray, String[] envp) throws IOException; native public Process exec(String[] cmdarray, String[] envp, File dir) throws IOException; native public int availableProcessors(); native public long freeMemory(); native public long totalMemory(); native public long maxMemory(); native public void gc(); native public void runFinalization(); native public void traceInstructions(boolean on); native public void traceMethodCalls(boolean on); native public void load(String filename); native public void loadLibrary(String libname); @Deprecated native public InputStream getLocalizedInputStream(InputStream in); @Deprecated native public OutputStream getLocalizedOutputStream(OutputStream out); private Runtime() { } }