Package org.apache.commons.crypto
Class OsInfo
java.lang.Object
org.apache.commons.crypto.OsInfo
Provides OS name and architecture name. Used by the JNI make process to get
information from the build environment.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final String
The constant string represents for IA64 architecture, the value is: "ia64".(package private) static final String
The constant string represents for IA64_32 architecture, the value is: "ia64_32".(package private) static final String
The constant string represents for PPC architecture, the value is: "ppc".(package private) static final String
The constant string represents for PPC64 architecture, the value is: "ppc64".(package private) static final String
The constant string represents for X86 architecture, the value is: "x86".(package private) static final String
The constant string represents for X86_64 architecture, the value is: "x86_64". -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static String
Gets the architecture name.(package private) static String
Gets the native lib folder.(package private) static String
Gets the OS name.(package private) static String
static void
The main method.private static String
translateArchNameToFolderName
(String archName) Translates the architecture name to folder name.private static String
translateOSNameToFolderName
(String osName) Translates the OS name to folder name.
-
Field Details
-
archMapping
-
X86
The constant string represents for X86 architecture, the value is: "x86".- See Also:
-
X86_64
The constant string represents for X86_64 architecture, the value is: "x86_64".- See Also:
-
IA64_32
The constant string represents for IA64_32 architecture, the value is: "ia64_32".- See Also:
-
IA64
The constant string represents for IA64 architecture, the value is: "ia64".- See Also:
-
PPC
The constant string represents for PPC architecture, the value is: "ppc".- See Also:
-
PPC64
The constant string represents for PPC64 architecture, the value is: "ppc64".- See Also:
-
-
Constructor Details
-
OsInfo
private OsInfo()The private constructor ofOsInfo
.
-
-
Method Details
-
getArchName
Gets the architecture name.- Returns:
- the architecture name.
-
getNativeLibFolderPathForCurrentOS
Gets the native lib folder.- Returns:
- the current OS's native lib folder.
-
getOSName
Gets the OS name.- Returns:
- the OS name.
-
getOsNameProperty
-
main
The main method. This is used by the JNI make processing in Makefile.common- Parameters:
args
- the argv.
-
translateArchNameToFolderName
Translates the architecture name to folder name.- Parameters:
archName
- the architecture name.- Returns:
- the folder name.
-
translateOSNameToFolderName
Translates the OS name to folder name.- Parameters:
osName
- the OS name.- Returns:
- the folder name.
-