public class Environment
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClassPath()
Get the current class path.
|
java.lang.String |
getCurrentWorkingDirectory()
Get the current working directory.
|
java.lang.String |
getHomeDirectory()
Get the user's home directory.
|
java.lang.String |
getHostName()
Get the host name.
|
static Environment |
getInstance()
Accessor for the singleton.
|
java.lang.String |
getOsName()
Get the operating system name.
|
java.lang.String |
getTempDirectory()
Get the temp directory.
|
java.lang.String |
getUserName()
Get the user name.
|
static void |
main(java.lang.String[] args)
Main program used for testing only.
|
java.lang.String |
toString()
Convert to a string for diagnostics
|
public static Environment getInstance()
Environment
object.public java.lang.String getClassPath()
public java.lang.String getCurrentWorkingDirectory()
public java.lang.String getHomeDirectory()
public java.lang.String getOsName()
public java.lang.String getTempDirectory()
public java.lang.String getUserName()
public java.lang.String getHostName()
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)
args
- arguments to program.