Package jnr.ffi
Class Platform.Windows
- java.lang.Object
-
- jnr.ffi.Platform
-
- jnr.ffi.Platform.Supported
-
- jnr.ffi.Platform.Windows
-
- Enclosing class:
- Platform
private static class Platform.Windows extends Platform.Supported
APlatform
subclass representing the Windows system.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jnr.ffi.Platform
Platform.CPU, Platform.IbmI, Platform.Linux, Platform.OS
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
WINDOWS_10
private static java.lang.String
WINDOWS_11
private static java.lang.String
WINDOWS_7
private static java.lang.String
WINDOWS_8
private static java.lang.String
WINDOWS_SERVER
private static java.lang.String
WINDOWS_VISTA
-
Fields inherited from class jnr.ffi.Platform
libPattern
-
-
Constructor Summary
Constructors Constructor Description Windows()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
is10()
boolean
is11()
boolean
is7()
boolean
is8()
boolean
isServer()
boolean
isVista()
private java.lang.String
osName()
-
Methods inherited from class jnr.ffi.Platform
addressSize, getCPU, getName, getNativePlatform, getOS, getOSName, getPlatform, getStandardCLibraryName, getVersion, getVersionMajor, getVersionMinor, is32Bit, is64Bit, isBigEndian, isBSD, isLittleEndian, isUnix, libraryLocations, locateLibrary, locateLibrary, longSize, mapLibraryName
-
-
-
-
Field Detail
-
WINDOWS_SERVER
private static final java.lang.String WINDOWS_SERVER
- See Also:
- Constant Field Values
-
WINDOWS_VISTA
private static final java.lang.String WINDOWS_VISTA
- See Also:
- Constant Field Values
-
WINDOWS_7
private static final java.lang.String WINDOWS_7
- See Also:
- Constant Field Values
-
WINDOWS_8
private static final java.lang.String WINDOWS_8
- See Also:
- Constant Field Values
-
WINDOWS_10
private static final java.lang.String WINDOWS_10
- See Also:
- Constant Field Values
-
WINDOWS_11
private static final java.lang.String WINDOWS_11
- See Also:
- Constant Field Values
-
-
Method Detail
-
osName
private java.lang.String osName()
-
isServer
public boolean isServer()
- Returns:
- true if this Windows version is a Windows server version
-
isVista
public boolean isVista()
- Returns:
- true if this Windows version is Windows Vista
-
is7
public boolean is7()
- Returns:
- true if this Windows version is Windows 7
-
is8
public boolean is8()
- Returns:
- true if this Windows version is Windows 8 (or 8.1)
-
is10
public boolean is10()
- Returns:
- true if this Windows version is Windows 10
-
is11
public boolean is11()
- Returns:
- true if this Windows versions is Windows 11
-
-