JavaSystem Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The System
class contains several useful class fields
and methods.
[Android.Runtime.Register("java/lang/System", DoNotGenerateAcw=true)]
public sealed class JavaSystem : Java.Lang.Object
[<Android.Runtime.Register("java/lang/System", DoNotGenerateAcw=true)>]
type JavaSystem = class
inherit Object
- Inheritance
- Attributes
Remarks
The System
class contains several useful class fields and methods. It cannot be instantiated.
Among the facilities provided by the System
class are standard input, standard output, and error output streams; access to externally defined properties and environment variables; a means of loading files and libraries; and a utility method for quickly copying a portion of an array.
Added in JDK1.0.
Java documentation for java.lang.System
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Properties
Class |
Returns the runtime class of this |
Err |
The "standard" error output stream. |
Handle |
The handle to the underlying Android instance. (Inherited from Object) |
In |
The "standard" input stream. |
JniIdentityHashCode | (Inherited from Object) |
JniPeerMembers | |
Out |
The "standard" output stream. |
PeerReference | (Inherited from Object) |
Properties |
Determines the current system properties. -or- Attempts to set all system properties. |
SecurityManager |
Always returns |
ThresholdClass |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. (Inherited from Object) |
ThresholdType |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. (Inherited from Object) |
Methods
Arraycopy(Object, Int32, Object, Int32, Int32) |
Copies an array from the specified source array, beginning at the specified position, to the specified position of the destination array. |
ClearProperty(String) |
Removes the system property indicated by the specified key. |
Clone() |
Creates and returns a copy of this object. (Inherited from Object) |
Console() |
Returns the unique |
CurrentTimeMillis() |
Returns the current time in milliseconds. |
Dispose() | (Inherited from Object) |
Dispose(Boolean) | (Inherited from Object) |
Equals(Object) |
Indicates whether some other object is "equal to" this one. (Inherited from Object) |
Exit(Int32) |
Terminates the currently running Java Virtual Machine. |
Gc() |
Runs the garbage collector. |
Getenv() |
Returns an unmodifiable string map view of the current system environment. |
Getenv(String) |
Gets the value of the specified environment variable. |
GetHashCode() |
Returns a hash code value for the object. (Inherited from Object) |
GetProperty(String, String) |
Gets the system property indicated by the specified key. |
GetProperty(String) |
Gets the system property indicated by the specified key. |
IdentityHashCode(Object) |
Returns the same hash code for the given object as would be returned by the default method hashCode(), whether or not the given object's class overrides hashCode(). |
InheritedChannel() |
Returns the channel inherited from the entity that created this Java virtual machine. |
JavaFinalize() |
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. (Inherited from Object) |
LineSeparator() |
Returns the system-dependent line separator string. |
Load(String) |
Loads the native library specified by the filename argument. |
LoadAsync(String) | |
LoadLibrary(String) |
Loads the native library specified by the |
LoadLibraryAsync(String) | |
MapLibraryName(String) |
Maps a library name into a platform-specific string representing a native library. |
NanoTime() |
Returns the current value of the running Java Virtual Machine's high-resolution time source, in nanoseconds. |
Notify() |
Wakes up a single thread that is waiting on this object's monitor. (Inherited from Object) |
NotifyAll() |
Wakes up all threads that are waiting on this object's monitor. (Inherited from Object) |
RunFinalization() |
Runs the finalization methods of any objects pending finalization. |
RunFinalizersOnExit(Boolean) |
Obsolete.
Enable or disable finalization on exit; doing so specifies that the finalizers of all objects that have finalizers that have not yet been automatically invoked are to be run before the Java runtime exits. |
SetErr(PrintStream) |
Reassigns the "standard" error output stream. |
SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. (Inherited from Object) |
SetIn(Stream) |
Reassigns the "standard" input stream. |
SetOut(PrintStream) |
Reassigns the "standard" output stream. |
SetProperty(String, String) |
Sets the system property indicated by the specified key. |
ToArray<T>() | (Inherited from Object) |
ToString() |
Returns a string representation of the object. (Inherited from Object) |
UnregisterFromRuntime() | (Inherited from Object) |
Wait() |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>. (Inherited from Object) |
Wait(Int64, Int32) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Wait(Int64) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Explicit Interface Implementations
IJavaPeerable.Disposed() | (Inherited from Object) |
IJavaPeerable.DisposeUnlessReferenced() | (Inherited from Object) |
IJavaPeerable.Finalized() | (Inherited from Object) |
IJavaPeerable.JniManagedPeerState | (Inherited from Object) |
IJavaPeerable.SetJniIdentityHashCode(Int32) | (Inherited from Object) |
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from Object) |
IJavaPeerable.SetPeerReference(JniObjectReference) | (Inherited from Object) |
Extension Methods
JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
JavaCast<TResult>(IJavaObject) | |
GetJniTypeName(IJavaPeerable) |