Package nbbrd.io.sys

Class SystemProperties


  • public final class SystemProperties
    extends Object
    https://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html
    • Constructor Detail

      • SystemProperties

        public SystemProperties()
    • Method Detail

      • getFileSeparator

        public @Nullable Character getFileSeparator()
        Character that separates components of a file path. This is "/" on UNIX and "\" on Windows.
        Returns:
      • getJavaClassPath

        public @NonNull List<Path> getJavaClassPath()
        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:
      • getJavaClassVersion

        public @Nullable String getJavaClassVersion()
      • getJavaHome

        public @Nullable Path getJavaHome()
        Installation directory for Java Runtime Environment (JRE)
        Returns:
      • getJavaLibraryPath

        public @NonNull List<Path> getJavaLibraryPath()
      • getJavaVendor

        public @Nullable String getJavaVendor()
        JRE vendor name
        Returns:
      • getJavaVendorUrl

        public @Nullable URL getJavaVendorUrl()
        JRE vendor URL
        Returns:
      • getJavaVersion

        public @Nullable String getJavaVersion()
        JRE version number
        Returns:
      • getJavaIoTmpdir

        public @Nullable Path getJavaIoTmpdir()
      • getJavaCompiler

        public @Nullable String getJavaCompiler()
      • getLineSeparator

        public @Nullable String getLineSeparator()
        Sequence used by operating system to separate lines in text files
        Returns:
      • getOsArch

        public @Nullable String getOsArch()
        Operating system architecture
        Returns:
      • getOsName

        public @Nullable String getOsName()
        Operating system name
        Returns:
      • getOsVersion

        public @Nullable String getOsVersion()
        Operating system version
        Returns:
      • getPathSeparator

        public @Nullable Character getPathSeparator()
        Path separator character used in java.class.path
        Returns:
      • getUserDir

        public @Nullable Path getUserDir()
        User working directory
        Returns:
      • getUserHome

        public @Nullable Path getUserHome()
        User home directory
        Returns:
      • getUserName

        public @Nullable String getUserName()
        User account name
        Returns:
      • getJavaVmSpecificationVersion

        public @Nullable String getJavaVmSpecificationVersion()
      • getJavaVmSpecificationVendor

        public @Nullable String getJavaVmSpecificationVendor()
      • getJavaVmSpecificationName

        public @Nullable String getJavaVmSpecificationName()
      • getJavaVmVersion

        public @Nullable String getJavaVmVersion()
      • getJavaVmVendor

        public @Nullable String getJavaVmVendor()
      • getJavaVmName

        public @Nullable String getJavaVmName()
      • getJavaSpecificationVersion

        public @Nullable String getJavaSpecificationVersion()
      • getJavaSpecificationVendor

        public @Nullable String getJavaSpecificationVendor()
      • getJavaSpecificationName

        public @Nullable String getJavaSpecificationName()