public final class SystemUtil extends Object
| Constructor and Description |
|---|
SystemUtil() |
| Modifier and Type | Method and Description |
|---|---|
static long |
getFreeMemory() |
static String |
getPropertyOrEnvironmentVariable(String name)
Gets either java property or environment variable with given name.
|
static long |
getRelativeTimeMillis()
Should be used in relative constructs (for example to check how many milliseconds have passed).
|
static long |
getSystemTimeMillis()
Deprecated.
|
static long |
getTimeBasedSeed() |
static StringBuilder |
runProcessAndCollectErrors(String execPath,
String params) |
static boolean |
runProcessAndWait(String execPath,
String params) |
@Deprecated public static long getSystemTimeMillis()
public static long getTimeBasedSeed()
public static long getRelativeTimeMillis()
DateTimeUtil.getCurrentTimeDate().public static long getFreeMemory()
public static String getPropertyOrEnvironmentVariable(String name)
name - the name of either java property or environment variable.public static boolean runProcessAndWait(String execPath, String params) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic static StringBuilder runProcessAndCollectErrors(String execPath, String params) throws IOException, InterruptedException
IOExceptionInterruptedExceptionCopyright © 1998–2019 iText Group NV. All rights reserved.