Class FileRelativeIO

java.lang.Object
com.helger.io.relative.FileRelativeIO
All Implemented Interfaces:
IFileRelativeIO, IPathRelativeIO

@Immutable public class FileRelativeIO extends Object implements IFileRelativeIO
Default implementation of IFileRelativeIO.
Author:
Philip Helger
  • Constructor Details

    • FileRelativeIO

      public FileRelativeIO(@NonNull File aBasePath)
      Constructor.
      Parameters:
      aBasePath - The absolute base path to use. May not be null. Must be an absolute path.
  • Method Details

    • internalCheckAccessRights

      public static void internalCheckAccessRights(@NonNull File aBasePath)
      Check read/write/execute access rights for the given base path and all contained files and directories.
      Parameters:
      aBasePath - The base path to check. May not be null.
    • getBasePathFile

      public @NonNull File getBasePathFile()
      Specified by:
      getBasePathFile in interface IFileRelativeIO
      Returns:
      The base path. Never null.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • createForCurrentDir

      public static @NonNull FileRelativeIO createForCurrentDir()
      Create a new FileRelativeIO for the current working directory.
      Returns:
      A new FileRelativeIO instance. Never null.