public final class SystemUtils
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SystemUtils.Unit |
Modifier and Type | Field and Description |
---|---|
private static java.lang.String[] |
jVMkeys
The names of properties
|
Modifier | Constructor and Description |
---|---|
private |
SystemUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
all()
All info
|
static java.lang.String |
classpath()
Classpath
|
private static java.lang.String |
classpathFromClassLoader()
Classpath (from class loader)
|
private static java.lang.String |
classpathFromProperty()
Classpath (from class loader)
|
static java.lang.String[] |
classpaths()
Classpath
|
private static java.lang.String[] |
classpathsFromClassLoader()
Classpath (from class loader)
|
private static java.lang.String[] |
classpathsFromProperty()
Classpath (from system property)
|
static java.lang.String |
classpathsToString(java.lang.String[] classPath)
Classpaths (from system property)
|
static java.lang.String |
coreNLPInfo()
CoreNLP information
|
static boolean |
detectStanford(java.lang.String[] classPath) |
(package private) static java.text.DecimalFormat |
formatter() |
static java.lang.String |
getJavaMemory()
Get property values as string
|
static java.lang.String[] |
getJavaProps()
Get property values
|
static java.lang.String |
getJavaPropsString()
Get property values as string
|
static float |
getVersionAsFloat()
Get JVM version
|
static boolean |
isRunningFromRunnable()
Whether program is running from runnable jar
|
static java.lang.String |
javaInfo()
System properties
|
static void |
main(java.lang.String[] args)
Main
|
static java.lang.String |
memoryInfo()
Memory information
|
static java.lang.String |
memoryInfo(SystemUtils.Unit u) |
static float |
parseVersion(java.lang.String version) |
static java.lang.String |
systemInfo()
System information
|
static java.lang.String |
systemProperties()
System properties
|
static java.text.DecimalFormat formatter()
public static boolean isRunningFromRunnable()
public static boolean detectStanford(java.lang.String[] classPath)
public static java.lang.String classpathsToString(java.lang.String[] classPath)
classPath
- classpathprivate static java.lang.String[] classpathsFromProperty()
private static java.lang.String[] classpathsFromClassLoader()
private static java.lang.String classpathFromClassLoader()
private static java.lang.String classpathFromProperty()
public static java.lang.String classpath()
public static java.lang.String[] classpaths()
public static float getVersionAsFloat()
public static float parseVersion(java.lang.String version) throws java.lang.NumberFormatException
java.lang.NumberFormatException
public static java.lang.String[] getJavaProps()
public static java.lang.String getJavaPropsString()
public static java.lang.String getJavaMemory()
public static java.lang.String systemProperties()
public static java.lang.String systemInfo()
public static java.lang.String javaInfo()
public static java.lang.String memoryInfo()
public static java.lang.String memoryInfo(SystemUtils.Unit u)
public static java.lang.String coreNLPInfo()
public static java.lang.String all()
public static void main(java.lang.String[] args)
args
- unused