Here you can find the source of isHidden(File file)
public static boolean isHidden(File file)
//package com.java2s; import java.io.File; public class Main { /** Is the given file hidden */ public static boolean isHidden(File file) { return file.isHidden() || file.getName().startsWith("."); }/*from w w w . ja v a2s. c om*/ }