Here you can find the source of isFileSymLink(File path)
public static boolean isFileSymLink(File path)
//package com.java2s; //License from project: Open Source License import java.io.File; import java.nio.file.Files; import java.nio.file.Path; public class Main { /**/*from w w w. j ava2 s. c o m*/ * returns true if the path specified is actually a symbolic link. */ public static boolean isFileSymLink(File path) { Path nioPath = path.toPath(); return Files.isSymbolicLink(nioPath); } }