public void createLink (Path link, Path existing) throws IOException

Creates a new link (directory entry) for an existing file. This method works in exactly the manner specified by the Files.createLink method.

The default implementation of this method throws UnsupportedOperationException.

Parameters:
link     the link (directory entry) to create
existing     a path to an existing file

Exceptions:
UnsupportedOperationException     if the implementation does not support adding an existing file to a directory
FileAlreadyExistsException     if the entry could not otherwise be created because a file of that name already exists (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 denies LinkPermission("hard") or its checkWrite method denies write access to either the link or the existing file.