Home | History | Annotate | Download | only in filefilter

Lines Matching refs:file

3  * contributor license agreements.  See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
19 import java.io.File;
25 * If the <code>File</code> is a directory it checks that
32 * File dir = new File(".");
44 * File dir = new File(".");
69 * Checks to see if the file is empty.
71 * @param file the file or directory to check
72 * @return <code>true</code> if the file or directory
75 public boolean accept(File file) {
76 if (file.isDirectory()) {
77 File[] files = file.listFiles();
80 return (file.length() == 0);