code: <A extends BasicFileAttributes> A readAttributes(File file, Class<A> type) {
      state.checkOpen();
      return attributes.readAttributes(file, type);
    }
docs: Returns attributes of the given file as an object of the given type.
  
  @throws UnsupportedOperationException if the given attributes type is not supported