public class ToolServices
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AUTHOR
The author.
|
static java.lang.String |
COPYRIGHT
The software copyright.
|
static java.lang.String |
COPYRIGHT_SHORT
The software copyright (short version).
|
static java.lang.String |
ERROR_INSTRUCTIONS
The standard error dialog instructions string.
|
static java.awt.Dimension |
HELP_DIALOG_SIZE
The standard size of the help dialog.
|
static java.lang.String |
PACKAGE
The full package description.
|
static java.lang.String |
PACKAGE_SHORT
The short package description.
|
static java.lang.String |
SPLIT_REGEX
The tool parameter splitting expression.
|
static java.lang.String |
SUPPORT
The support email address.
|
static java.lang.String |
WEBSITE
The software website.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
checkSetup()
Checks the setup of tool services.
|
static java.lang.String |
getAbout(java.lang.String tool)
Gets an about string appropriate for an about dialog box.
|
static java.lang.String |
getCommandLine()
Gets the current tool command line, or null if none has been set.
|
static java.lang.String |
getFullVersion(java.lang.String tool)
Gets a full tool and Java runtime version string for
printing on the command line.
|
static java.lang.String |
getJavaVersion()
Gets a Java runtime and OS version.
|
static java.lang.String |
getSplash(java.lang.String tool)
Gets a string appropriate for a splash screen annotation.
|
static java.lang.String |
getSplitRegex()
Gets the current command line parameter splitting regular expression.
|
static java.lang.String |
getToolVersion(java.lang.String tool)
Gets a tool version string.
|
static java.lang.String |
getVersion()
Gets a simple version string.
|
static void |
setCommandLine(java.lang.String command,
java.lang.String[] argv)
Sets the current tool command line.
|
static void |
setSplitRegex(java.lang.String expr)
Sets the current command line parameter splitting regular expression.
|
static void |
startMemoryMonitor()
Starts a memory monitor task that repeatedly outputs the status
of memory usage to standard output until the VM exits.
|
public static final java.lang.String PACKAGE
public static final java.lang.String PACKAGE_SHORT
public static final java.lang.String AUTHOR
public static final java.lang.String SUPPORT
public static final java.lang.String WEBSITE
public static final java.lang.String COPYRIGHT
public static final java.lang.String COPYRIGHT_SHORT
public static final java.lang.String SPLIT_REGEX
public static final java.lang.String ERROR_INSTRUCTIONS
public static final java.awt.Dimension HELP_DIALOG_SIZE
public static java.lang.String getAbout(java.lang.String tool)
tool
- the tool or program name.public static java.lang.String getSplash(java.lang.String tool)
tool
- the tool or program name.public static java.lang.String getVersion()
public static java.lang.String getToolVersion(java.lang.String tool)
tool
- the tool or program name.public static java.lang.String getJavaVersion()
public static java.lang.String getFullVersion(java.lang.String tool)
tool
- the tool or program name.public static void setCommandLine(java.lang.String command, java.lang.String[] argv)
command
- the command or program name.argv
- an array of command line arguments.public static java.lang.String getCommandLine()
public static void startMemoryMonitor()
public static java.lang.String getSplitRegex()
public static void setSplitRegex(java.lang.String expr)
expr
- the new splitting expression.public static java.lang.String checkSetup()