1. /*
  2. * @(#)FileFilter.java 1.7 00/02/02
  3. *
  4. * Copyright 1998-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package java.io;
  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.FileFilter}</code> class.
  17. *
  18. * @since 1.2
  19. */
  20. public interface FileFilter {
  21. /**
  22. * Tests whether or not the specified abstract pathname should be
  23. * included in a pathname list.
  24. *
  25. * @param pathname The abstract pathname to be tested
  26. * @return <code>true</code> if and only if <code>pathname</code>
  27. * should be included
  28. */
  29. boolean accept(File pathname);
  30. }