Source Home >> Java Source 1.6.0 >> java.io.FileFilter V 0.09
  • 01/*
  • 02 * @(#)FileFilter.java 1.12 05/11/17
  • 03 *
  • 04 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
  • 05 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  • 06 */
  • 07
  • 08package java.io;
  • 09
  • 10
  • 11/**
  • 12 * A filter for abstract pathnames.
  • 13 *
  • 14 * <p> Instances of this interface may be passed to the <code>{@link
  • 15 * File#listFiles(java.io.FileFilter) listFiles(FileFilter)}</code> method
  • 16 * of the <code>{@link java.io.File}</code> class.
  • 17 *
  • 18 * @since 1.2
  • 19 */
  • 20public interface FileFilter {
  • 21
  • 22 /**
  • 23 * Tests whether or not the specified abstract pathname should be
  • 24 * included in a pathname list.
  • 25 *
  • 26 * @param pathname The abstract pathname to be tested
  • 27 * @return <code>true</code> if and only if <code>pathname</code>
  • 28 * should be included
  • 29 */
  • 30 boolean accept(File pathname);
  • 31
  • 32}

文件:FileFilter.java
包名:java.io
类名:FileFilter
继承:
接口: