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 StringThe constant string represents for IA64 architecture, the value is: "ia64".(package private) static final StringThe constant string represents for IA64_32 architecture, the value is: "ia64_32".(package private) static final StringThe constant string represents for PPC architecture, the value is: "ppc".(package private) static final StringThe constant string represents for PPC64 architecture, the value is: "ppc64".(package private) static final StringThe constant string represents for X86 architecture, the value is: "x86".(package private) static final StringThe constant string represents for X86_64 architecture, the value is: "x86_64". -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static StringGets the architecture name.(package private) static StringGets the native lib folder.(package private) static StringGets the OS name.(package private) static Stringstatic voidThe main method.private static StringtranslateArchNameToFolderName(String archName) Translates the architecture name to folder name.private static StringtranslateOSNameToFolderName(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
-
getNativeLibFolderPathForCurrentOS
Gets the native lib folder.- Returns:
- the current OS's native lib folder.
-
getOSName
-
getOsNameProperty
-
main
The main method. This is used by the JNI make processing in Makefile.common- Parameters:
args- the argv.
-
translateArchNameToFolderName
-
translateOSNameToFolderName
-