Class FS_POSIX_Java5


  • public class FS_POSIX_Java5
    extends FS_POSIX
    FS implementaton for Java5
    Since:
    3.0
    • Constructor Detail

      • FS_POSIX_Java5

        public FS_POSIX_Java5()
        Constructor
      • FS_POSIX_Java5

        public FS_POSIX_Java5​(FS src)
        Constructor
        Parameters:
        src - instance whose attributes to copy
    • Method Detail

      • newInstance

        public FS newInstance()
        Specified by:
        newInstance in class FS
        Returns:
        a new instance of the same type of FS.
      • supportsExecute

        public boolean supportsExecute()
        Description copied from class: FS
        Does this operating system and JRE support the execute flag on files?
        Specified by:
        supportsExecute in class FS
        Returns:
        true if this implementation can provide reasonably accurate executable bit information; false otherwise.
      • canExecute

        public boolean canExecute​(java.io.File f)
        Description copied from class: FS
        Determine if the file is executable (or not).

        Not all platforms and JREs support executable flags on files. If the feature is unsupported this method will always return false.

        If the platform supports symbolic links and f is a symbolic link this method returns false, rather than the state of the executable flags on the target file.

        Specified by:
        canExecute in class FS
        Parameters:
        f - abstract path to test.
        Returns:
        true if the file is believed to be executable by the user.
      • setExecute

        public boolean setExecute​(java.io.File f,
                                  boolean canExec)
        Description copied from class: FS
        Set a file to be executable by the user.

        Not all platforms and JREs support executable flags on files. If the feature is unsupported this method will always return false and no changes will be made to the file specified.

        Specified by:
        setExecute in class FS
        Parameters:
        f - path to modify the executable status of.
        canExec - true to enable execution; false to disable it.
        Returns:
        true if the change succeeded; false otherwise.
      • retryFailedLockFileCommit

        public boolean retryFailedLockFileCommit()
        Description copied from class: FS
        Does this file system have problems with atomic renames?
        Specified by:
        retryFailedLockFileCommit in class FS
        Returns:
        true if the caller should retry a failed rename of a lock file.