Package edu.wpi.first.util
Class RuntimeDetector
- java.lang.Object
-
- edu.wpi.first.util.RuntimeDetector
-
public final class RuntimeDetector extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getFileExtension()
Get the file extension for the current system.static String
getFilePrefix()
Get the file prefix for the current system.static String
getHashLibraryResource(String libName)
Get the path to the hash to the requested resource.static String
getLibraryResource(String libName)
Get the path to the requested resource.static String
getPlatformPath()
Get the platform path for the current system.static boolean
is32BitIntel()
static boolean
is64BitIntel()
static boolean
isAarch64()
check if architecture is aarch64.static boolean
isAthena()
Check if hardware platform is Athena.static boolean
isLinux()
static boolean
isMac()
static boolean
isRaspbian()
Check if OS is Raspbian.static boolean
isWindows()
-
-
-
Method Detail
-
getFilePrefix
public static String getFilePrefix()
Get the file prefix for the current system.- Returns:
- The file prefix.
-
getFileExtension
public static String getFileExtension()
Get the file extension for the current system.- Returns:
- The file extension.
-
getPlatformPath
public static String getPlatformPath()
Get the platform path for the current system.- Returns:
- The platform path.
-
getLibraryResource
public static String getLibraryResource(String libName)
Get the path to the requested resource.- Parameters:
libName
- Library name.- Returns:
- The path to the requested resource.
-
getHashLibraryResource
public static String getHashLibraryResource(String libName)
Get the path to the hash to the requested resource.- Parameters:
libName
- Library name.- Returns:
- The path to the hash to the requested resource.
-
isAthena
public static boolean isAthena()
Check if hardware platform is Athena.- Returns:
- True if hardware platform is Athena.
-
isRaspbian
public static boolean isRaspbian()
Check if OS is Raspbian.- Returns:
- True if OS is Raspbian.
-
isAarch64
public static boolean isAarch64()
check if architecture is aarch64.- Returns:
- if architecture is 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()
-
-