Skip to content

System Utilities Documentation

Asterios Raptis edited this page Feb 10, 2025 · 3 revisions

Overview

This library provides utilities for retrieving system-related properties and directories.

Package Structure

  • io.github.astrapi69.file.system
    • SystemFileExtensions - Utility class for retrieving system-related file paths.
    • SystemPropertiesExtensions - Utility class for retrieving system properties.

Classes

SystemFileExtensions

Provides methods for retrieving system and user directories.

Methods:

  • getJavaHomeDir() - Retrieves the Java home directory.
  • getTempDir() - Retrieves the system temporary directory.
  • getUserHomeDir() - Retrieves the user's home directory.
  • getUserDownloadsDir() - Retrieves the user's downloads directory.
  • getUserTempDir() - Retrieves the user's temporary directory.
  • getUserConfigurationDir() - Retrieves the user's configuration directory.
  • getUserWorkingDir() - Retrieves the user's working directory.
  • getRootDir() - Retrieves the root directory of the system.
  • getWindowsRootDriveDir(char driveLetter) - Retrieves the Windows root drive directory.

SystemPropertiesExtensions

Provides utility methods for retrieving system properties.

Methods:

  • getFileSeparator() - Retrieves the system file separator.
  • getJavaIoTmpdir() - Retrieves the Java temporary directory.
  • getJavaHome() - Retrieves the Java home directory.
  • getJavaClassPath() - Retrieves the Java class path.
  • getJavaVendor() - Retrieves the Java vendor name.
  • getJavaVendorUrl() - Retrieves the Java vendor URL.
  • getJavaVersion() - Retrieves the Java version.
  • getLineSeparator() - Retrieves the system line separator.
  • getOsArchitecture() - Retrieves the OS architecture.
  • getOsName() - Retrieves the OS name.
  • getOsVersion() - Retrieves the OS version.
  • getPathSeparator() - Retrieves the system path separator.
  • getUserHome() - Retrieves the user home directory.
  • getUserName() - Retrieves the user name.
  • getUserWorkingDirectory() - Retrieves the user working directory.
  • setSystemProperties(Properties properties) - Sets system properties from a Properties object.

Clone this wiki locally