- java.lang.Object
-
- com.github.kwhat.jnativehook.NativeSystem
-
public class NativeSystem extends Object
A small class to determine the native system's operating system family and architecture. The class is only used to determine which native library to unpack and load at runtime. This class is never used if the native library is loaded using thejava.library.pathproperty.- Since:
- 1.0
- Version:
- 2.2
- Author:
- Alexander Barker (alex@1stleg.com)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNativeSystem.ArchThe system architecture enum.static classNativeSystem.FamilyThe operating system family enum.
-
Constructor Summary
Constructors Constructor Description NativeSystem()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NativeSystem.ArchgetArchitecture()Determines the current system architecture.static NativeSystem.FamilygetFamily()Determines the current operating system family.
-
-
-
Method Detail
-
getFamily
public static NativeSystem.Family getFamily()
Determines the current operating system family.- Returns:
- The current operating system family enum item.
-
getArchitecture
public static NativeSystem.Arch getArchitecture()
Determines the current system architecture.- Returns:
- The current system architecture.
-
-