public Path readSymbolicLink (Path link) throws IOException

Reads the target of a symbolic link. This method works in exactly the manner specified by the Files.readSymbolicLink method.

The default implementation of this method throws UnsupportedOperationException.

Parameters:
link     the path to the symbolic link

Returns:  The target of the symbolic link

Exceptions:
UnsupportedOperationException     if the implementation does not support symbolic links
NotLinkException     if the target could otherwise not be read because the file is not a symbolic link (optional specific exception)
IOException     if an I/O error occurs
SecurityException     In the case of the default provider, and a security manager is installed, it checks that FilePermission has been granted with the " readlink" action to read the link.