public interface RuntimeEnvironment
To obtain instances of this interface, use the utility class RuntimeEnvironments.
| Modifier and Type | Method and Description |
|---|---|
FileSystem |
fileSystem()
Returns the file system.
|
double |
getCpuTime()
Returns an approximation of the CPU time used by this program in seconds.
|
String |
getEnv(String name)
Returns the value of the environment variable
name, or null when
name is not defined. |
OutputStream |
standardError()
Returns the standard error stream.
|
InputStream |
standardInput()
Returns the standard input stream.
|
OutputStream |
standardOutput()
Returns the standard output stream.
|
InputStream standardInput()
OutputStream standardOutput()
OutputStream standardError()
FileSystem fileSystem()
String getEnv(String name)
name, or null when
name is not defined.name - the name of the environment variable, must not be nullname (possibly null)NullPointerException - if name is nulldouble getCpuTime()
UnsupportedOperationException - if this operation is not supported by the
runtime environmentCopyright © 2016–2017. All rights reserved.