Class StandardFileEnvironment

java.lang.Object
de.intarsys.tools.environment.file.StandardFileEnvironment
All Implemented Interfaces:
IFileEnvironment

public class StandardFileEnvironment extends Object implements IFileEnvironment
  • Constructor Details

    • StandardFileEnvironment

      public StandardFileEnvironment()
    • StandardFileEnvironment

      public StandardFileEnvironment(File pBaseDir, File pProfileDir)
    • StandardFileEnvironment

      public StandardFileEnvironment(File pBaseDir, File pProfileDir, File pTempDir, File pWorkingDir)
  • Method Details

    • getBaseDir

      public File getBaseDir()
      Description copied from interface: IFileEnvironment
      The platform base directory.

      Normally this will be equal to the VM "user.dir" property.

      Specified by:
      getBaseDir in interface IFileEnvironment
      Returns:
      The platform base directory.
    • getProfileDir

      public File getProfileDir()
      Description copied from interface: IFileEnvironment
      Some user specific private directory.

      Normally this will be equal to the VM "user.home" property or an application defined subdirectory.

      Specified by:
      getProfileDir in interface IFileEnvironment
      Returns:
      Some private directory.
    • getTempDir

      public File getTempDir()
      Description copied from interface: IFileEnvironment
      The directory for temporary files.

      Normally this will be equal to the VM "java.io.tmpdir" property.

      Specified by:
      getTempDir in interface IFileEnvironment
      Returns:
      The directory for temporary files.
    • getWorkingDir

      public File getWorkingDir()
      Description copied from interface: IFileEnvironment
      The working directory.

      Normally this will be equal to the VM "user.dir" property.

      Specified by:
      getWorkingDir in interface IFileEnvironment
      Returns:
      The working directory.