public class REpiceaSystem
extends java.lang.Object
| Constructor and Description |
|---|
REpiceaSystem() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addToClassPath(java.lang.String filename)
Dynamically adds a directory or a JAR file to the class path.
|
static java.util.List<java.lang.String> |
getClassPathURLs()
Provides the different URLs in the class path.
|
static java.lang.String |
getJavaArchitecture()
Returns the architecture of the JVM, i.e.
|
static java.lang.String |
getJavaIOTmpDir()
This method returns the temporary input/output directory.
|
static java.lang.String |
getJVMRevision()
This method returns the revision of the virtual machine.
|
static java.lang.String |
getJVMVersion()
This method returns the version of the virtual machine.
|
static boolean |
isCurrentJVMLaterThanThisVersion(java.lang.String targetJVM)
This method returns true if the current version of the JVM is more recent than the parameter targetJVM.
|
static boolean |
isCurrentJVMLaterThanThisVersion(java.lang.String targetJVM,
boolean upToThirdDigit)
This method returns true if the current version of the JVM is more recent than the parameter targetJVM
|
static boolean |
isRunningOnWindows()
Returns true if the OS is Windows or false otherwise.
|
static java.lang.String |
retrieveArgument(java.lang.String option,
java.util.List<java.lang.String> argumentList)
This method scan the arguments for a particular option and returns the value of that option.
|
static java.util.List<java.lang.String> |
setClassicalOptions(java.lang.String[] args)
This static methods processes the arguments given to the main function in a very classical manner.
|
static void |
setLanguageFromMain(java.lang.String[] args)
This method scans the arguments given to the main method in order to
set the language.
|
static void |
setLanguageFromMain(java.lang.String[] args,
REpiceaTranslator.Language defaultLanguage)
This method scans the arguments given to the main method in order to
set the language.
|
public static java.lang.String getJavaIOTmpDir()
public static void setLanguageFromMain(java.lang.String[] args,
REpiceaTranslator.Language defaultLanguage)
args - the arguments given to the main methoddefaultLanguage - a default language can be nullpublic static void setLanguageFromMain(java.lang.String[] args)
args - the arguments given to the main methodpublic static boolean isCurrentJVMLaterThanThisVersion(java.lang.String targetJVM,
boolean upToThirdDigit)
targetJVM - a StringupToThirdDigit - a boolean true to test up to the third digitpublic static boolean isCurrentJVMLaterThanThisVersion(java.lang.String targetJVM)
targetJVM - a Stringpublic static java.util.List<java.lang.String> setClassicalOptions(java.lang.String[] args)
args - the input array of String instancespublic static java.lang.String retrieveArgument(java.lang.String option,
java.util.List<java.lang.String> argumentList)
option - the optionargumentList - a List of String instancespublic static java.lang.String getJVMVersion()
public static java.lang.String getJVMRevision()
public static boolean isRunningOnWindows()
public static java.lang.String getJavaArchitecture()
public static java.util.List<java.lang.String> getClassPathURLs()
throws java.lang.Exception
java.lang.Exceptionpublic static void addToClassPath(java.lang.String filename)
throws java.lang.Exception
filename - a String that stands for the filename.java.lang.Exception