Package edu.wpi.first.wpiutil
Class RuntimeDetector
- java.lang.Object
-
- edu.wpi.first.wpiutil.RuntimeDetector
-
public final class RuntimeDetector extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetFileExtension()Get the file extension for the current system.static StringgetFilePrefix()Get the file prefix for the current system.static StringgetHashLibraryResource(String libName)Get the path to the hash to the requested resource.static StringgetLibraryResource(String libName)Get the path to the requested resource.static StringgetPlatformPath()Get the platform path for the current system.static booleanis32BitIntel()static booleanis64BitIntel()static booleanisAarch64Bionic()check if os is bionic aarch64.static booleanisAthena()static booleanisLinux()static booleanisMac()static booleanisRaspbian()check if os is raspbian.static booleanisWindows()
-
-
-
Method Detail
-
getFilePrefix
public static String getFilePrefix()
Get the file prefix for the current system.
-
getFileExtension
public static String getFileExtension()
Get the file extension for the current system.
-
getPlatformPath
public static String getPlatformPath()
Get the platform path for the current system.
-
getLibraryResource
public static String getLibraryResource(String libName)
Get the path to the requested resource.
-
getHashLibraryResource
public static String getHashLibraryResource(String libName)
Get the path to the hash to the requested resource.
-
isAthena
public static boolean isAthena()
-
isRaspbian
public static boolean isRaspbian()
check if os is raspbian.- Returns:
- if os is raspbian
-
isAarch64Bionic
public static boolean isAarch64Bionic()
check if os is bionic aarch64.- Returns:
- if os is bionic aarch64
-
isLinux
public static boolean isLinux()
-
isWindows
public static boolean isWindows()
-
isMac
public static boolean isMac()
-
is32BitIntel
public static boolean is32BitIntel()
-
is64BitIntel
public static boolean is64BitIntel()
-
-