Module file.worker

Class SystemPropertiesExtensions

java.lang.Object
io.github.astrapi69.file.system.SystemPropertiesExtensions

public class SystemPropertiesExtensions extends Object
The class SystemPropertiesExtensions provide methods for get the common system properties
  • Field Details

  • Constructor Details

    • SystemPropertiesExtensions

      public SystemPropertiesExtensions()
  • Method Details

    • getFileSeparator

      public static 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
    • getJavaIoTmpdir

      public static String getJavaIoTmpdir()
      Gets the path for the temporary directory for java
      Returns:
      the java class path
    • getJavaHome

      public static String getJavaHome()
      Gets the path of the installed java home
      Returns:
      the java home path
    • getJavaClassPath

      public static 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 String getJavaVendor()
      Gets the name of JRE vendor name
      Returns:
      the name of JRE vendor name
    • getJavaVendorUrl

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

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

      public static 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 String getOsArchitecture()
      Gets the operating system architecture
      Returns:
      the operating system architecture
    • getOsName

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

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

      public static 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 String getUserHome()
      Gets the user home directory
      Returns:
      the user home directory
    • getUserName

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

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