System

public class System extends Object

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

Field Summary

public static PrintStream err
public static InputStream in
public static PrintStream out

Public Constructor Summary

System()

Public Method Summary

static void
arraycopy(Object src, int srcPos, Object dest, int destPos, int length)
static String
static Console
console()
Returns the Console associated with this VM, or null.
static long
static void
exit(int status)
static void
gc()
static Properties
static String
getProperty(String key, String defaultValue)
static String
static SecurityManager
getSecurityManager()
Returns null.
static String
getenv(String name)
static Map<StringString>
getenv()
static int
static Channel
inheritedChannel()
Returns the channel inherited from the entity that created this Java virtual machine.
static String
lineSeparator()
Returns the system's line separator.
static void
load(String pathName)
static void
static long
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
static void
static void
static void
static String
setProperty(String key, String value)

Inherited Method Summary

Fields

public static PrintStream err

public static InputStream in

public static PrintStream out

Public Constructors

public System ()

Public Methods

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

Parameters
src
srcPos
dest
destPos
length

public static String clearProperty (String key)

Parameters
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)

Parameters
status

public static void gc ()

public static Properties getProperties ()

public static String getProperty (String key, String defaultValue)

Parameters
key
defaultValue

public static String getProperty (String key)

Parameters
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)

Parameters
name

public static Map<StringString> getenv ()

public static int identityHashCode (Object anObject)

Parameters
anObject

public static Channel inheritedChannel ()

Returns the channel inherited from the entity that created this Java virtual machine.

This method returns the channel obtained by invoking the inheritedChannel method of the system-wide default SelectorProvider object.

In addition to the network-oriented channels described in inheritedChannel, this method may return other kinds of channels in the future.

Returns
  • The inherited channel, if any, otherwise null.
Throws
IOException If an I/O error occurs
SecurityException If a security manager is present and it does not permit access to the channel.

public static String lineSeparator ()

Returns the system's line separator.

public static void load (String pathName)

Parameters
pathName

public static void loadLibrary (String libName)

Parameters
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.

Parameters
b

public static void setErr (PrintStream newErr)

Parameters
newErr

public static void setIn (InputStream newIn)

Parameters
newIn

public static void setOut (PrintStream newOut)

Parameters
newOut

public static void setProperties (Properties properties)

Parameters
properties

public static String setProperty (String key, String value)

Parameters
key
value