|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sam.core.Settings.Environment
Repository of various environment-dependant values.
Field Summary | |
static java.lang.String |
AUTHOR
Author of this program as a String |
static java.lang.Class |
BOOT_CLASS
The main runnable class |
static java.lang.String |
COMPUTER_ARCHITECTURE
The hardware architecture the current VM is running on |
static java.lang.String |
EMAIL
Email address of the author, as a String |
static java.lang.String |
GROUP
The group of the user running the current VM |
static java.lang.String |
HOME
The home directory of the user running the current VM |
static java.lang.String |
HOME_PAGE
Home page of the program, as a String |
static java.lang.String |
MICROSOFT_DISLAIMER
Security disclaimer for users of Microsoft operating system. |
static java.lang.String |
OPERATING_SYSTEM
The operating system the current VM is running under |
static java.lang.String |
OPERATING_SYSTEM_VERSION
The operating system version the current VM is running under |
static java.lang.String |
PROGRAM_BINARY
The command-line prefix to run the program This looks like "java sam.main" |
static java.lang.String |
PROGRAM_NAME
|
static int |
PROGRAM_VERSION
SAM version, currently 0.92 (encoded as the 92 integer) |
static boolean |
STDIN_IS_SYNCRHONOUS
Wether the standard input is synchronous, or not |
static java.lang.String |
TEMPORARY_FILES_SUFFIX
|
static java.lang.String |
USER
The user running the current VM |
Constructor Summary | |
Settings.Environment()
|
Method Summary | |
static void |
appendClassPath(java.lang.String classPath)
Appends a class path to the current class path |
static java.lang.String |
getDefaultTemporary()
Gets the default temporary directory |
static java.lang.String |
greetings()
Gets a greeting string, suitable to display e.g. |
static boolean |
isRunningOnMicrosoftOS()
Checks wether the VM is running under a Microsoft operating system. |
static java.lang.String |
programDescription()
A human-readable description of the program and its environment |
static java.lang.String |
programVersion()
SAM version, as a human-readable String |
static void |
warnMicrosoftOperatingSystemOwners()
Prints a security disclaimer if running under a Microsoft operating system. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String AUTHOR
String
public static final java.lang.String EMAIL
String
public static final java.lang.String HOME_PAGE
String
public static final java.lang.String PROGRAM_NAME
public static final int PROGRAM_VERSION
92
integer)
public static final java.lang.String USER
public static final java.lang.String HOME
public static final java.lang.String GROUP
public static final java.lang.String OPERATING_SYSTEM
public static final java.lang.String OPERATING_SYSTEM_VERSION
public static final java.lang.String COMPUTER_ARCHITECTURE
public static final boolean STDIN_IS_SYNCRHONOUS
UserInterface
,
Constant Field Valuespublic static final java.lang.Class BOOT_CLASS
public static final java.lang.String PROGRAM_BINARY
"java sam.main"
public static final java.lang.String MICROSOFT_DISLAIMER
Microsoft
operating system.
public static final java.lang.String TEMPORARY_FILES_SUFFIX
Constructor Detail |
public Settings.Environment()
Method Detail |
public static java.lang.String programVersion()
String
PROGRAM_VERSION
public static final java.lang.String greetings()
public static java.lang.String programDescription()
public static boolean isRunningOnMicrosoftOS()
Microsoft
operating system.
public static void warnMicrosoftOperatingSystemOwners()
Microsoft
operating system.
MICROSOFT_DISLAIMER
public static void appendClassPath(java.lang.String classPath)
public static java.lang.String getDefaultTemporary()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |