Contents | Package | Class | Tree | Deprecated | Index | Help
PREV | NEXT SHOW LISTS | HIDE LISTS

Class cornell.slk.jkernel.core.SystemRuntimeSafe

Source code
java.lang.Object
    |
    +----cornell.slk.jkernel.core.SystemRuntimeSafe

public final class SystemRuntimeSafe
extends java.lang.Object
Runtime and System are a hodgepodge of harmless and extremely dangerous functions all mixed together. Language functions (arrayCopy, identityHashCode) are mixed freely with system functions (exec, currentTimeMillis).

SystemRuntimeSafe extracts the harmless things, while SystemRuntimeDangerous extracts the dangerous ones. SystemRuntimeSafe is placed in the standard resolver, while SystemRuntimeDangerous is not.

Later we should probably take all the system functions (as opposed to the language functions), and export these through capabilities.


Field Summary
static java.lang.Runtime  runtime
 
 

Constructor Summary
 SystemRuntimeSafe()
 
 

Method Summary
static void  arraycopy(java.lang.Object src, int srcOffset, java.lang.Object dst, int dstOffset, int length)
 
static long  currentTimeMillis()
 
static java.io.InputStream  getLocalizedInputStream(java.io.InputStream in)
 
static java.io.OutputStream  getLocalizedOutputStream(java.io.OutputStream out)
 
static int  identityHashCode(java.lang.Object x)
 
 
Methods inherited from class java.lang.Object
 , clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

runtime

private static java.lang.Runtime runtime
Constructor Detail

SystemRuntimeSafe

public SystemRuntimeSafe()
Method Detail

identityHashCode

public static int identityHashCode(java.lang.Object x)

arraycopy

public static void arraycopy(java.lang.Object src,
                             int srcOffset,
                             java.lang.Object dst,
                             int dstOffset,
                             int length) throws java.lang.NullPointerException, java.lang.ArrayStoreException, java.lang.IndexOutOfBoundsException

currentTimeMillis

public static long currentTimeMillis()

getLocalizedInputStream

public static java.io.InputStream getLocalizedInputStream(java.io.InputStream in)

getLocalizedOutputStream

public static java.io.OutputStream getLocalizedOutputStream(java.io.OutputStream out)

Contents | Package | Class | Tree | Deprecated | Index | Help
PREV | NEXT SHOW LISTS | HIDE LISTS