Package edu.wpi.first.util
Class RuntimeDetector
java.lang.Object
edu.wpi.first.util.RuntimeDetector
Deprecated, for removal: This API element is subject to removal in a future version.
platform detection is brittle and may be removed in the future.
A utility class for detecting and providing platform-specific such as OS and CPU architecture.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringDeprecated, for removal: This API element is subject to removal in a future version.Get the file extension for the current system.static StringDeprecated, for removal: This API element is subject to removal in a future version.Get the file prefix for the current system.static StringgetHashLibraryResource(String libName) Deprecated, for removal: This API element is subject to removal in a future version.Get the path to the hash to the requested resource.static StringgetLibraryResource(String libName) Deprecated, for removal: This API element is subject to removal in a future version.Get the path to the requested resource.static StringDeprecated, for removal: This API element is subject to removal in a future version.Get the platform path for the current system.static booleanDeprecated, for removal: This API element is subject to removal in a future version.Check if OS is 32bit Intel.static booleanDeprecated, for removal: This API element is subject to removal in a future version.Check if OS is 64bit Intel.static booleanisArm32()Deprecated, for removal: This API element is subject to removal in a future version.Check if OS is Arm32.static booleanisArm64()Deprecated, for removal: This API element is subject to removal in a future version.Check if architecture is Arm64.static booleanisAthena()Deprecated, for removal: This API element is subject to removal in a future version.Check if hardware platform is Athena.static booleanisLinux()Deprecated, for removal: This API element is subject to removal in a future version.Check if OS is Linux.static booleanisMac()Deprecated, for removal: This API element is subject to removal in a future version.Check if OS is Mac.static booleanDeprecated, for removal: This API element is subject to removal in a future version.Check if OS is Windows.
-
Method Details
-
getFilePrefix
Deprecated, for removal: This API element is subject to removal in a future version.Get the file prefix for the current system.- Returns:
- The file prefix.
-
getFileExtension
Deprecated, for removal: This API element is subject to removal in a future version.Get the file extension for the current system.- Returns:
- The file extension.
-
getPlatformPath
Deprecated, for removal: This API element is subject to removal in a future version.Get the platform path for the current system.- Returns:
- The platform path.
-
getLibraryResource
Deprecated, for removal: This API element is subject to removal in a future version.Get the path to the requested resource.- Parameters:
libName- Library name.- Returns:
- The path to the requested resource.
-
getHashLibraryResource
Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version.Check if hardware platform is Athena.- Returns:
- True if hardware platform is Athena.
-
isArm32
Deprecated, for removal: This API element is subject to removal in a future version.Check if OS is Arm32.- Returns:
- True if OS is Arm32.
-
isArm64
Deprecated, for removal: This API element is subject to removal in a future version.Check if architecture is Arm64.- Returns:
- if architecture is Arm64.
-
isLinux
Deprecated, for removal: This API element is subject to removal in a future version.Check if OS is Linux.- Returns:
- if OS is Linux.
-
isWindows
Deprecated, for removal: This API element is subject to removal in a future version.Check if OS is Windows.- Returns:
- if OS is Windows.
-
isMac
Deprecated, for removal: This API element is subject to removal in a future version.Check if OS is Mac.- Returns:
- if OS is Mac.
-
is32BitIntel
Deprecated, for removal: This API element is subject to removal in a future version.Check if OS is 32bit Intel.- Returns:
- if OS is 32bit Intel.
-
is64BitIntel
Deprecated, for removal: This API element is subject to removal in a future version.Check if OS is 64bit Intel.- Returns:
- if OS is 64bit Intel.
-