public static void link(File src, File dst) throws IOException {
    if (src == null || dst == null) {
      throw new IllegalArgumentException("Null parameter passed");
    }
    if (isAvailable()) {
      link(src.getAbsolutePath(), dst.getAbsolutePath());
    } else {
      HardLink.createHardLink(src, dst);
    }
  }
public static void link ( File src , File dst ) throws IOException { if ( src == null || dst == null ) { throw new IllegalArgumentException ( "Null parameter passed" ) ; } if ( isAvailable ( ) ) { link ( src . getAbsolutePath ( ) , dst . getAbsolutePath ( ) ) ; } else { HardLink . createHardLink ( src , dst ) ; } }
Wrapper around native link()