Package edu.wpi.first.util
Class RuntimeDetector
java.lang.Object
edu.wpi.first.util.RuntimeDetector
public final class RuntimeDetector extends Object
-
Method Summary
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 booleanisAarch64()check if architecture is aarch64.static booleanisAthena()Check if hardware platform is Athena.static booleanisLinux()static booleanisMac()static booleanisRaspbian()Check if OS is Raspbian.static booleanisWindows()
-
Method Details
-
getFilePrefix
Get the file prefix for the current system.- Returns:
- The file prefix.
-
getFileExtension
Get the file extension for the current system.- Returns:
- The file extension.
-
getPlatformPath
Get the platform path for the current system.- Returns:
- The platform path.
-
getLibraryResource
Get the path to the requested resource.- Parameters:
libName- Library name.- Returns:
- The path to the requested resource.
-
getHashLibraryResource
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
Check if hardware platform is Athena.- Returns:
- True if hardware platform is Athena.
-
isRaspbian
Check if OS is Raspbian.- Returns:
- True if OS is Raspbian.
-
isAarch64
check if architecture is aarch64.- Returns:
- if architecture is aarch64
-
isLinux
-
isWindows
-
isMac
-
is32BitIntel
-
is64BitIntel
-