Class SystemPropertiesExtensions


  • public class SystemPropertiesExtensions
    extends java.lang.Object
    The class SystemPropertiesExtensions provide methods for get the common system properties
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getFileSeparator()
      Gets the system file separator character.
      static java.lang.String getJavaClassPath()
      Gets the Path used to find directories and JAR archives containing class files.
      static java.lang.String getJavaVendor()
      Gets the name of JRE vendor name
      static java.lang.String getJavaVendorUrl()
      Gets the name of JRE vendor url
      static java.lang.String getJavaVersion()
      Gets the JRE version
      static java.lang.String getLineSeparator()
      Gets the system line separator character.
      static java.lang.String getOsArchitecture()
      Gets the operating system architecture
      static java.lang.String getOsName()
      Gets the operating system name
      static java.lang.String getOsVersion()
      Gets the operating system version
      static java.lang.String getPathSeparator()
      Gets the system path separator character used in java.class.path
      static java.lang.String getUserHome()
      Gets the user home directory
      static java.lang.String getUserName()
      Gets the user name
      static java.lang.String getUserWorkingDirectory()
      Gets the user working directory
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SystemPropertiesExtensions

        public SystemPropertiesExtensions()
    • Method Detail

      • getFileSeparator

        public static java.lang.String getFileSeparator()
        Gets the system file separator character. In other words the character that separates components of a file path. This is "/" on UNIX and "\" on Windows.
        Returns:
        the system file separator character
      • getJavaClassPath

        public static java.lang.String getJavaClassPath()
        Gets the Path used to find directories and JAR archives containing class files. Elements of the class path are separated by a platform-specific character specified in the path.separator property.
        Returns:
        the java class path
      • getJavaVendor

        public static java.lang.String getJavaVendor()
        Gets the name of JRE vendor name
        Returns:
        the name of JRE vendor name
      • getJavaVendorUrl

        public static java.lang.String getJavaVendorUrl()
        Gets the name of JRE vendor url
        Returns:
        the name of JRE vendor url
      • getJavaVersion

        public static java.lang.String getJavaVersion()
        Gets the JRE version
        Returns:
        the JRE version
      • getLineSeparator

        public static java.lang.String getLineSeparator()
        Gets the system line separator character. In other words the sequence used by operating system to separate lines in text files
        Returns:
        the system line separator character
      • getOsArchitecture

        public static java.lang.String getOsArchitecture()
        Gets the operating system architecture
        Returns:
        the operating system architecture
      • getOsName

        public static java.lang.String getOsName()
        Gets the operating system name
        Returns:
        the operating system name
      • getOsVersion

        public static java.lang.String getOsVersion()
        Gets the operating system version
        Returns:
        the operating system version
      • getPathSeparator

        public static java.lang.String getPathSeparator()
        Gets the system path separator character used in java.class.path
        Returns:
        the system path separator character used in java.class.path
      • getUserHome

        public static java.lang.String getUserHome()
        Gets the user home directory
        Returns:
        the user home directory
      • getUserName

        public static java.lang.String getUserName()
        Gets the user name
        Returns:
        the user name
      • getUserWorkingDirectory

        public static java.lang.String getUserWorkingDirectory()
        Gets the user working directory
        Returns:
        the user working directory