| Modifier and Type | Class and Description |
|---|---|
| public static enum | Platform.CPU
The supported CPU architectures. |
| private static class | Platform.Darwin
A |
| private static class | |
| pack-priv static class | |
| pack-priv static class | Platform.Linux
A |
| public static enum | Platform.OS
The common names of supported operating systems. |
| private static class | |
| private static class | |
| private static class | |
| private static class | Platform.Windows
A |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final Platform. | |
| protected final Pattern | |
| private static final Locale | |
| private final int | |
| private final Platform. |
| Access | Constructor and Description |
|---|---|
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public final int | Returns: the size of a pointer in bits
Deprecated
Use
Gets the size of a C address/pointer on the native platform.
Runtime#addressSize() instead.
|
| private static int | |
| private static Platform. | |
| private static Platform. | |
| private static Platform | Returns: An instance ofPlatformThe operating system. osDetermines the |
| private static Platform | |
| private static boolean | |
| public final Platform. | Returns: ACPU value representing the current processor architecture.Gets the current processor architecture the JVM is running on. |
| public String | |
| public static Platform | |
| public final Platform. | Returns: AOS value representing the current Operating System.Gets the current Operating System. |
| public final String | |
| public static Platform | |
| public String | Returns: The standard C library nameReturns the platform specific standard C library name |
| public String | Returns: the String representing the version of this platform, or null if none could be foundGets the version of this platform as specified by the system property "os.version" |
| public int | Returns: the number representing the major version of this platform or -1 if none was foundGets the number representing the major version of this platform
This uses the first number from |
| public int | Returns: the number representing the minor version of this platform or -1 if none was foundGets the number representing the minor version of this platform
This uses the second number from |
| private List | Returns: the list of version numbers found fromgetVersion() or an empty list if none were found
|
| public final boolean | Returns: true if this platform is 32 bit, else false Note: do not use this to determine long size, instead useRuntime#longSize()
|
| public final boolean | Returns: true if this platform is 64 bit, else false Note: do not use this to determine long size, instead useRuntime#longSize()
|
| public final boolean | Returns: true if big endian, false otherwise or if cannot determineReturns true if the current platform is big endian |
| public final boolean | |
| public final boolean | Returns: true if little endian, false otherwise or if cannot determineReturns true if the current platform is little endian |
| public final boolean | |
| public List | Returns: the list of absolute paths where the library was foundthe base name (e.g. "c") of the library to locate libName, List<String> additional paths to search, these take precedence over default paths,
(as is the behavior in additionalPaths)LibraryLoader)
pass null to only search in the default pathsReturns a list of absolute paths to the found locations of a library with the base name |
| public String | Returns: the path of the librarythe base name (e.g. "c") of the library to locate libName, List<String> the list of directories to search libraryPath)Searches through a list of directories for a native library. |
| public String | Returns: the path of the librarythe base name (e.g. "c") of the library to locate libName, List<String> the list of directories to search libraryPaths, Map<LibraryOption, Object> map of options)LibraryOptions to customize search behavior
such as LibraryOption#PreferCustomPathsSearches through a list of directories for a native library. |
| public final int | Returns: the size of a long in bits
Deprecated
Use
Gets the size of a C 'long' on the native platform.
Runtime#longSize() instead.
|
| public String | Returns: The mapped library name.The library name to map libName)Maps from a generic library name (e.g. "c") to the platform specific library name. |
| private static boolean |