jaroslav@1258: /* jaroslav@1258: * Copyright (c) 1998, 2002, Oracle and/or its affiliates. All rights reserved. jaroslav@1258: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. jaroslav@1258: * jaroslav@1258: * This code is free software; you can redistribute it and/or modify it jaroslav@1258: * under the terms of the GNU General Public License version 2 only, as jaroslav@1258: * published by the Free Software Foundation. Oracle designates this jaroslav@1258: * particular file as subject to the "Classpath" exception as provided jaroslav@1258: * by Oracle in the LICENSE file that accompanied this code. jaroslav@1258: * jaroslav@1258: * This code is distributed in the hope that it will be useful, but WITHOUT jaroslav@1258: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or jaroslav@1258: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License jaroslav@1258: * version 2 for more details (a copy is included in the LICENSE file that jaroslav@1258: * accompanied this code). jaroslav@1258: * jaroslav@1258: * You should have received a copy of the GNU General Public License version jaroslav@1258: * 2 along with this work; if not, write to the Free Software Foundation, jaroslav@1258: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. jaroslav@1258: * jaroslav@1258: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA jaroslav@1258: * or visit www.oracle.com if you need additional information or have any jaroslav@1258: * questions. jaroslav@1258: */ jaroslav@1258: jaroslav@1258: package java.io; jaroslav@1258: jaroslav@1258: jaroslav@1258: /** jaroslav@1258: * A filter for abstract pathnames. jaroslav@1258: * jaroslav@1258: *

Instances of this interface may be passed to the {@link jaroslav@1258: * File#listFiles(java.io.FileFilter) listFiles(FileFilter)} method jaroslav@1258: * of the {@link java.io.File} class. jaroslav@1258: * jaroslav@1258: * @since 1.2 jaroslav@1258: */ jaroslav@1258: public interface FileFilter { jaroslav@1258: jaroslav@1258: /** jaroslav@1258: * Tests whether or not the specified abstract pathname should be jaroslav@1258: * included in a pathname list. jaroslav@1258: * jaroslav@1258: * @param pathname The abstract pathname to be tested jaroslav@1258: * @return true if and only if pathname jaroslav@1258: * should be included jaroslav@1258: */ jaroslav@1258: boolean accept(File pathname); jaroslav@1258: jaroslav@1258: }