BasicFileAttributes

Interface BasicFileAttributes

All Known Subinterfaces:
DosFileAttributes, PosixFileAttributes
public interface BasicFileAttributes

Basic attributes associated with a file in a file system.

Basic file attributes are attributes that are common to many file systems and consist of mandatory and optional file attributes as defined by this interface.

Usage Example:

Path file = ...
    BasicFileAttributes attrs = Files.readAttributes(file, BasicFileAttributes.class);
Since:
1.7
See Also:
BasicFileAttributeView

Methods

登录查看完整内容