Package com.gengoai

Interface SystemInfo


  • public interface SystemInfo

    Common system properties accessed via the runtime or system classes.

    Author:
    David B. Bracewell
    • Field Detail

      • NUMBER_OF_PROCESSORS

        static final int NUMBER_OF_PROCESSORS
        The number of available processors according to the runtime
      • FILE_ENCODING

        static final String FILE_ENCODING
        The character encoding for the default locale *
      • FILE_ENCODING_PKG

        static final String FILE_ENCODING_PKG
        The package that contains the converters that handle converting between local encodings and Unicode
      • FILE_SEPARATOR

        static final String FILE_SEPARATOR
        The platform-dependent file separator (e.g., "/" on UNIX, "\" for Windows)
      • JAVA_CLASS_PATH

        static final String JAVA_CLASS_PATH
        The value of the CLASSPATH environment variable *
      • JAVA_CLASS_VERSION

        static final String JAVA_CLASS_VERSION
        The version of the Java API *
      • JAVA_COMPILER

        static final String JAVA_COMPILER
        The just-in-time compiler to use, if any. The java interpreter provided with the JDK initializes this property from the environment variable JAVA_COMPILER.
      • JAVA_HOME

        static final String JAVA_HOME
        The directory in which Java is installed *
      • JAVA_IO_TMPDIR

        static final String JAVA_IO_TMPDIR
        The directory in which java should create temporary files *
      • JAVA_VERSION

        static final String JAVA_VERSION
        The version of the Java interpreter *
      • JAVA_VENDOR

        static final String JAVA_VENDOR
        A vendor-specific string *
      • JAVA_VENDOR_URL

        static final String JAVA_VENDOR_URL
        A vendor URL *
      • LINE_SEPARATOR

        static final String LINE_SEPARATOR
        The platform-dependent line separator (e.g., "\n" on UNIX, "\r\n" for Windows)
      • OS_NAME

        static final String OS_NAME
        The name of the operating system *
      • OS_ARCH

        static final String OS_ARCH
        The system architecture *
      • OS_VERSION

        static final String OS_VERSION
        The operating system version *
      • PATH_SEPARATOR

        static final String PATH_SEPARATOR
        The platform-dependent path separator (e.g., ":" on UNIX, "," for Windows)
      • USER_DIR

        static final String USER_DIR
        The current working directory when the properties were initialized *
      • USER_HOME

        static final String USER_HOME
        The home directory of the current user *
      • USER_LANGUAGE

        static final String USER_LANGUAGE
        The two-letter language code of the default locale *
      • USER_NAME

        static final String USER_NAME
        The username of the current user *
      • USER_REGION

        static final String USER_REGION
        The two-letter country code of the default locale *
      • USER_TIMEZONE

        static final String USER_TIMEZONE
        The default time zone *
    • Method Detail

      • isUnix

        static boolean isUnix()
        Checks if the OS is a unix variant
        Returns:
        True if unix, False otherwise
      • isWindows

        static boolean isWindows()
        Checks if the OS is a windows variant
        Returns:
        True if windows, False otherwise