public abstract class SystemUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Map.Entry<Integer,String> |
exec(Map<String,String> environment,
String stdIn,
List<String> command) |
static Map.Entry<Integer,String> |
exec(String command) |
static boolean |
existsInPath(String exec)
Check existence of a program in the path.
|
static boolean |
isWindows() |
static String |
os() |
static Optional<Integer> |
parseJavaVersion(String javaVersion) |
static String |
systemJavaIoTmp() |
static Optional<Integer> |
systemJavaVersion() |
static String |
systemUserDir() |
static String |
systemUserHome() |
public static Map.Entry<Integer,String> exec(Map<String,String> environment, String stdIn, List<String> command)
public static boolean existsInPath(String exec)
exec - executable namepublic static String os()
public static boolean isWindows()
public static String systemJavaIoTmp()
public static String systemUserHome()
public static String systemUserDir()
Copyright © 2019. All rights reserved.