Class OsInfo

java.lang.Object
org.apache.commons.crypto.OsInfo

final class OsInfo extends Object
Provides OS name and architecture name. Used by the JNI make process to get information from the build environment.
  • Field Details

    • archMapping

      private static final HashMap<String,String> archMapping
    • X86

      static final String X86
      The constant string represents for X86 architecture, the value is: "x86".
      See Also:
    • X86_64

      static final String X86_64
      The constant string represents for X86_64 architecture, the value is: "x86_64".
      See Also:
    • IA64_32

      static final String IA64_32
      The constant string represents for IA64_32 architecture, the value is: "ia64_32".
      See Also:
    • IA64

      static final String IA64
      The constant string represents for IA64 architecture, the value is: "ia64".
      See Also:
    • PPC

      static final String PPC
      The constant string represents for PPC architecture, the value is: "ppc".
      See Also:
    • PPC64

      static final String PPC64
      The constant string represents for PPC64 architecture, the value is: "ppc64".
      See Also:
  • Constructor Details

    • OsInfo

      private OsInfo()
      The private constructor of OsInfo.
  • Method Details

    • getArchName

      static String getArchName()
      Gets the architecture name.
      Returns:
      the architecture name.
    • getNativeLibFolderPathForCurrentOS

      static String getNativeLibFolderPathForCurrentOS()
      Gets the native lib folder.
      Returns:
      the current OS's native lib folder.
    • getOSName

      static String getOSName()
      Gets the OS name.
      Returns:
      the OS name.
    • getOsNameProperty

      static String getOsNameProperty()
    • main

      public static void main(String[] args)
      The main method. This is used by the JNI make processing in Makefile.common
      Parameters:
      args - the argv.
    • translateArchNameToFolderName

      private static String translateArchNameToFolderName(String archName)
      Translates the architecture name to folder name.
      Parameters:
      archName - the architecture name.
      Returns:
      the folder name.
    • translateOSNameToFolderName

      private static String translateOSNameToFolderName(String osName)
      Translates the OS name to folder name.
      Parameters:
      osName - the OS name.
      Returns:
      the folder name.