Package com.lambdaworks.jni
Class Platform
- java.lang.Object
-
- com.lambdaworks.jni.Platform
-
public class Platform extends java.lang.Object
A platform is a unique combination of CPU architecture and operating system. This class attempts to determine the platform it is executing on by examining and normalizing theos.arch
andos.name
system properties.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Platform.Arch
static class
Platform.OS
-
Field Summary
Fields Modifier and Type Field Description Platform.Arch
arch
Platform.OS
os
-
Constructor Summary
Constructors Modifier Constructor Description private
Platform(Platform.Arch arch, Platform.OS os)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Platform
detect()
Attempt to detect the current platform.
-
-
-
Field Detail
-
arch
public final Platform.Arch arch
-
os
public final Platform.OS os
-
-
Constructor Detail
-
Platform
private Platform(Platform.Arch arch, Platform.OS os)
-
-
Method Detail
-
detect
public static Platform detect() throws UnsupportedPlatformException
Attempt to detect the current platform.- Returns:
- The current platform.
- Throws:
UnsupportedPlatformException
- if the platform cannot be detected.
-
-