public class AllFilesFileFilter extends java.lang.Object implements FileFilter
Constructor and Description |
---|
AllFilesFileFilter(java.lang.String description)
Create a filter which accepts all (non-directory) files.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.io.File f)
Check if a file is accepted by this filter.
|
boolean |
acceptsDirectories()
Check if (all) directories are accepted by this filter.
|
java.lang.String |
getDescription()
Get a short description for this filter.
|
public AllFilesFileFilter(java.lang.String description)
description
- A short string describing the filter.public boolean accept(java.io.File f)
FileFilter
accept
in interface FileFilter
f
- The file to be tested.public boolean acceptsDirectories()
FileFilter
acceptsDirectories
in interface FileFilter
public java.lang.String getDescription()
getDescription
in interface FileFilter
Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved.