public class PlatformUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PlatformUtil.Architecture |
static class |
PlatformUtil.OsFamily |
| Modifier and Type | Field and Description |
|---|---|
static String |
OS_ARCH |
static String |
OS_NAME |
| Constructor and Description |
|---|
PlatformUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
downloadAndExtractArchive(URL url,
Path destinationDirectory) |
static void |
extractArchive(Path sourceArchive,
Path destinationDirectory) |
static PlatformUtil.Architecture |
getArch() |
static String |
getDefaultArchiveExtension() |
static PlatformUtil.OsFamily |
getOsFamily() |
static boolean |
isLinux() |
static boolean |
isMac() |
static boolean |
isWindows() |
static String |
toScriptName(String name) |
public static String getDefaultArchiveExtension()
public static void downloadAndExtractArchive(URL url, Path destinationDirectory) throws IOException
IOExceptionpublic static PlatformUtil.Architecture getArch()
public static PlatformUtil.OsFamily getOsFamily()
public static boolean isWindows()
public static boolean isMac()
public static boolean isLinux()
Copyright © 2022 HEBI Robotics. All rights reserved.