|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jlab.coda.jevio.Environment
public class Environment
This is a utility class employing a singleton to obtain environment information, such as user name, home directory, OS name, etc.
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
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
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |