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
|
Methods inherited from class java.lang.Object
|
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
runtime
private static java.lang.Runtime runtime
SystemRuntimeSafe
public SystemRuntimeSafe()
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)