Android Guides | Samples

Java.Lang.JavaSystem Class

Provides access to system-related information and resources including standard input and output.

See Also: JavaSystem

Syntax

[Android.Runtime.Register("java/lang/System", DoNotGenerateAcw=true)]
public sealed class JavaSystem : Object

Remarks

Provides access to system-related information and resources including standard input and output. Enables clients to dynamically load native libraries. All methods of this class are accessed in a static way and the class itself can not be instantiated.

See Also

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Java.Lang.JavaSystem are listed below.

See Also: Object

Public Properties

[read-only]
static
ErrPrintStream. Default error output stream.
[read-only]
static
InStream. Default input stream.
[read-only]
static
OutPrintStream. Default output stream.
static
PropertiesProperties. Returns the system properties.
static
SecurityManagerSecurityManager. Returns null.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

static
Arraycopy(Object, Int32, Object, Int32, Int32)
Copies length elements from the array src, starting at offset srcPos, into the array dst, starting at offset dstPos.
static
ClearProperty(String) : String
Removes a specific system property.
static
Console() : Console
Returns the Console associated with this VM, or null.
static
CurrentTimeMillis() : Int64
Returns the current time in milliseconds since January 1, 1970 00:00:00.
static
Exit(Int32)
Causes the VM to stop running and the program to exit with the given exit status.
static
Gc()
Indicates to the VM that it would be a good time to run the garbage collector.
static
Getenv() : IDictionary<string, string>
Returns an unmodifiable map of all environment variables to their values.
static
Getenv(String) : String
Returns the value of the environment variable with the given name, or null if no such variable exists.
static
GetProperty(String) : String
Returns the value of a particular system property or null if no such property exists.
static
GetProperty(String, String) : String
Returns the value of a particular system property.
static
IdentityHashCode(Object) : Int32
Returns an integer hash code for the parameter.
static
InheritedChannel() : IChannel
Returns the inherited channel from the creator of the current virtual machine.
static
LineSeparator() : String
Returns the system's line separator.
static
Load(String)
See Runtime.Load(String).
static
LoadAsync(String) : Task
static
LoadLibrary(String)
See Runtime.LoadLibrary(String).
static
LoadLibraryAsync(String) : Task
static
MapLibraryName(String) : String
Returns the platform specific file name format for the shared library named by the argument.
static
NanoTime() : Int64
Returns the current timestamp of the most precise timer available on the local system, in nanoseconds.
static
RunFinalization()
Provides a hint to the VM that it would be useful to attempt to perform any outstanding object finalization.
static
RunFinalizersOnExit(Boolean)
Ensures that, when the VM is about to exit, all objects are finalized.
static
SetErr(PrintStream)
Sets the standard error output stream to the given user defined output stream.
static
SetIn(Stream)
Sets the standard input stream to the given user defined input stream.
static
SetOut(PrintStream)
Sets the standard output stream to the given user defined output stream.
static
SetProperty(String, String) : String
Sets the value of a particular system property.