- java.lang.Object
-
- de.carne.nio.file.attribute.FileAttributes
-
public final class FileAttributes extends java.lang.ObjectUtility class providing FileAttribute related functions.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.nio.file.attribute.FileAttribute<?>[]userDirectoryDefault(java.nio.file.FileSystem fileSystem)Gets the FileSystem specific best choice for the access rights for a user's private directory.static java.nio.file.attribute.FileAttribute<?>[]userDirectoryDefault(java.nio.file.Path path)Gets the FileSystem specific best choice for the access rights for a user's private directory.static java.nio.file.attribute.FileAttribute<?>[]userFileDefault(java.nio.file.FileSystem fileSystem)Gets the FileSystem specific best choice for the access rights for a user's private file.static java.nio.file.attribute.FileAttribute<?>[]userFileDefault(java.nio.file.Path path)Gets the FileSystem specific best choice for the access rights for a user's private file.
-
-
-
Method Detail
-
userDirectoryDefault
public static java.nio.file.attribute.FileAttribute<?>[] userDirectoryDefault(java.nio.file.FileSystem fileSystem)
Gets the FileSystem specific best choice for the access rights for a user's private directory.- Parameters:
fileSystem- the FileSystem to determine the access rights for.- Returns:
- the access rights to use for a user's private directory.
-
userDirectoryDefault
public static java.nio.file.attribute.FileAttribute<?>[] userDirectoryDefault(java.nio.file.Path path)
Gets the FileSystem specific best choice for the access rights for a user's private directory.- Parameters:
path- the Path to determine the access rights for.- Returns:
- the access rights to use for a user's private directory.
-
userFileDefault
public static java.nio.file.attribute.FileAttribute<?>[] userFileDefault(java.nio.file.FileSystem fileSystem)
Gets the FileSystem specific best choice for the access rights for a user's private file.- Parameters:
fileSystem- the FileSystem to determine the access rights for.- Returns:
- the access rights to use for a user's private file.
-
userFileDefault
public static java.nio.file.attribute.FileAttribute<?>[] userFileDefault(java.nio.file.Path path)
Gets the FileSystem specific best choice for the access rights for a user's private file.- Parameters:
path- the Path to determine the access rights for.- Returns:
- the access rights to use for a user's private file.
-
-