System (Java SE 26 & JDK 26)
-
Nested Class Summary
Nested Classes
static interfaceSystem.Loggerinstances log messages that will be routed to the underlying logging framework theLoggerFinderuses.static classThe
LoggerFinderservice is responsible for creating, managing, and configuring loggers to the underlying framework it uses. -
Field Summary
Fields
The "standard" error output stream.
The "standard" input stream.
The "standard" output stream.
-
Method Summary
static voidarraycopy(Object src, int srcPos, Object dest, int destPos, int length) Copies an array from the specified source array, beginning at the specified position, to the specified position of the destination array.
Removes the system property indicated by the specified key.
console()Returns the unique
Consoleobject associated with the current Java virtual machine, if any.static longReturns the current time in milliseconds.
static voidexit(int status) static voidgc()Runs the garbage collector in the Java Virtual Machine.
getenv()Returns an unmodifiable string map view of the current system environment.
Gets the value of the specified environment variable.
Returns an instance of
Loggerfor the caller's use.Returns a localizable instance of
Loggerfor the caller's use.Determines the current system properties.
Gets the system property indicated by the specified key.
Gets the system property indicated by the specified key.
Deprecated, for removal: This API element is subject to removal in a future version.
static intReturns 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().
Returns the channel inherited from the entity that created this Java virtual machine.
Returns the system-dependent line separator string.
static voidRestricted.
Loads the native library specified by the filename argument.
static voidRestricted.
Loads the native library specified by the
libnameargument.Maps a library name into a platform-specific string representing a native library.
static longnanoTime()Returns the current value of the running Java Virtual Machine's high-resolution time source, in nanoseconds.
static voidDeprecated, for removal: This API element is subject to removal in a future version.
static voidReassigns the "standard" error output stream.
static voidReassigns the "standard" input stream.
static voidReassigns the "standard" output stream.
static voidSets the system properties to the
Propertiesargument.Sets the system property indicated by the specified key.
static voidDeprecated, for removal: This API element is subject to removal in a future version.
Methods declared in class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitCreates and returns a copy of this object.
booleanIndicates whether some other object is "equal to" this one.
protected voidDeprecated, for removal: This API element is subject to removal in a future version.
Returns the runtime class of this
Object.intReturns a hash code value for this object.
final voidWakes up a single thread that is waiting on this object's monitor.
final voidWakes up all threads that are waiting on this object's monitor.
Returns a string representation of the object.
final voidCauses the current thread to wait until it is awakened, typically by being notified or interrupted.
final voidwait(long timeoutMillis) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.
final voidwait(long timeoutMillis, int nanos) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.
-
Field Details
-
in
-
out
-
err
-
-
Method Details
-
setIn
-
setOut
-
setErr
-
console
-
inheritedChannel
-
setSecurityManager
-
getSecurityManager
-
currentTimeMillis
-
nanoTime
-
arraycopy
-
identityHashCode
-
getProperties
-
lineSeparator
-
setProperties
-
getProperty
-
getProperty
-
setProperty
-
clearProperty
-
getenv
-
getenv
-
getLogger
-
getLogger
-
exit
-
gc
-
runFinalization
-
load
-
loadLibrary
-
mapLibraryName
-