Package com.lambdaworks.jni
Class Platform
- java.lang.Object
-
- com.lambdaworks.jni.Platform
-
public class Platform extends java.lang.ObjectA 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.archandos.namesystem properties.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPlatform.Archstatic classPlatform.OS
-
Field Summary
Fields Modifier and Type Field Description Platform.ArcharchPlatform.OSos
-
Constructor Summary
Constructors Modifier Constructor Description privatePlatform(Platform.Arch arch, Platform.OS os)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Platformdetect()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.
-
-