System - JRE Emulation | JRE Emulation
public class

System

extends Object
java.lang.Object
   ↳ java.lang.System

Class Overview

Simple iOS version of java.lang.System. No code was shared, just its public API.

Summary

Fields
public static final PrintStream err
public static final InputStream in
public static final PrintStream out
Public Constructors
System()
Public Methods
static void arraycopy(Object src, int srcPos, Object dest, int destPos, int length)
static String clearProperty(String key)
static Console console()
Returns the Console associated with this VM, or null.
static long currentTimeMillis()
static void exit(int status)
static void gc()
static Properties getProperties()
static String getProperty(String key, String defaultValue)
static String getProperty(String key)
static SecurityManager getSecurityManager()
Returns null.
static String getenv(String name)
static Map<StringString> getenv()
static int identityHashCode(Object anObject)
static String lineSeparator()
Returns the system's line separator.
static void load(String pathName)
static void loadLibrary(String libName)
static long nanoTime()
static void runFinalization()
No-op on iOS, since it doesn't use garbage collection.
static void runFinalizersOnExit(boolean b)
No-op on iOS, since it doesn't use garbage collection.
static void setErr(PrintStream newErr)
static void setIn(InputStream newIn)
static void setOut(PrintStream newOut)
static void setProperties(Properties properties)
static String setProperty(String key, String value)
Inherited Methods
[Expand]
From class java.lang.Object

Fields

public static final PrintStream err

public static final InputStream in

public static final PrintStream out

Public Constructors

public System ()

Public Methods

public static void arraycopy (Object src, int srcPos, Object dest, int destPos, int length)

public static String clearProperty (String key)

public static Console console ()

Returns the Console associated with this VM, or null. Not all VMs will have an associated console. A console is typically only available for programs run from the command line.

public static long currentTimeMillis ()

public static void exit (int status)

public static void gc ()

public static Properties getProperties ()

public static String getProperty (String key, String defaultValue)

public static String getProperty (String key)

public static SecurityManager getSecurityManager ()

Returns null. Android does not use SecurityManager. This method is only provided for source compatibility.

Returns
  • null

public static String getenv (String name)

public static Map<StringString> getenv ()

public static int identityHashCode (Object anObject)

public static String lineSeparator ()

Returns the system's line separator.

public static void load (String pathName)

public static void loadLibrary (String libName)

public static long nanoTime ()

public static void runFinalization ()

No-op on iOS, since it doesn't use garbage collection.

public static void runFinalizersOnExit (boolean b)

No-op on iOS, since it doesn't use garbage collection.

public static void setErr (PrintStream newErr)

public static void setIn (InputStream newIn)

public static void setOut (PrintStream newOut)

public static void setProperties (Properties properties)

public static String setProperty (String key, String value)