/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 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; import org.sablevm.annotations.ImplementedInVM; public class Runtime extends Object { @ImplementedInVM native public static Runtime getRuntime(); @ImplementedInVM native public void exit(int status); @ImplementedInVM native public void addShutdownHook(Thread hook); @ImplementedInVM native public boolean removeShutdownHook(Thread hook); @ImplementedInVM native public void halt(int status); @Deprecated @ImplementedInVM native public static void runFinalizersOnExit(boolean value); @ImplementedInVM native public Process exec(String command) throws IOException; @ImplementedInVM native public Process exec(String command, String[] envp) throws IOException; @ImplementedInVM native public Process exec(String command, String[] envp, File dir) throws IOException; @ImplementedInVM native public Process exec(String[] cmdarray) throws IOException; @ImplementedInVM native public Process exec(String[] cmdarray, String[] envp) throws IOException; @ImplementedInVM native public Process exec(String[] cmdarray, String[] envp, File dir) throws IOException; @ImplementedInVM native public int availableProcessors(); @ImplementedInVM native public long freeMemory(); @ImplementedInVM native public long totalMemory(); @ImplementedInVM native public long maxMemory(); @ImplementedInVM native public void gc(); @ImplementedInVM native public void runFinalization(); @ImplementedInVM native public void traceInstructions(boolean on); @ImplementedInVM native public void traceMethodCalls(boolean on); @ImplementedInVM native public void load(String filename); @ImplementedInVM native public void loadLibrary(String libname); @Deprecated @ImplementedInVM native public InputStream getLocalizedInputStream(InputStream in); @Deprecated @ImplementedInVM native public OutputStream getLocalizedOutputStream(OutputStream out); }