public abstract <A extends BasicFileAttributes> A readAttributes (Path path, Class<A> type, LinkOption… options) throws IOException

Reads a file's attributes as a bulk operation. This method works in exactly the manner specified by the Files.readAttributes(Path,Class,LinkOption[]) method.

<A>     The BasicFileAttributes type
path     the path to the file
type     the Class of the file attributes required to read
options     options indicating how symbolic links are handled

Returns:  the file attributes

UnsupportedOperationException     if an attributes of the given type are not supported
IOException     if an I/O error occurs
SecurityException     In the case of the default provider, a security manager is installed, its checkRead method is invoked to check read access to the file