Here you can find the source of isSymbolicLink(File file)
static boolean isSymbolicLink(File file) throws IOException
//package com.java2s; // Licensed under the Apache License, Version 2.0 (the "License"); import java.io.File; import java.io.IOException; public class Main { static boolean isSymbolicLink(File file) throws IOException { return !file.getAbsolutePath().equals(file.getCanonicalPath()); }// w ww . ja v a 2 s . co m }