public abstract Map<String, Object> readAttributes (Path path, String attributes, LinkOption… options) throws IOException

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

path     the path to the file
attributes     the attributes to read
options     options indicating how symbolic links are handled

Returns:  a map of the attributes returned; may be empty. The map's keys are the attribute names, its values are the attribute values

UnsupportedOperationException     if the attribute view is not available
IllegalArgumentException     if no attributes are specified or an unrecognized attributes is specified
IOException     If an I/O error occurs
SecurityException     In the case of the default provider, and a security manager is installed, its checkRead method denies read access to the file. If this method is invoked to read security sensitive attributes then the security manager may be invoke to check for additional permissions.