throws NoSuchFileException, UnsupportedOperationException, IOException, SecurityException {
checkNotNull( "path", path );
checkNotNull( "type", type );
if ( !path.toFile().exists() ) {
throw new NoSuchFileException( path.toString() );
}
if ( type == BasicFileAttributesImpl.class || type == BasicFileAttributes.class ) {
final SimpleBasicFileAttributeView view = getFileAttributeView( path, SimpleBasicFileAttributeView.class, options );
return (A) view.readAttributes();