public class FileFileFilter extends AbstractFileFilter implements java.io.Serializable
Files that are files (not directories).
For example, here is how to print out a list of the real files within the current directory:
File dir = new File(".");
String[] files = dir.list( FileFileFilter.FILE );
for ( int i = 0; i < files.length; i++ ) {
System.out.println(files[i]);
}
FileFilterUtils.fileFileFilter(),
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static IOFileFilter |
FILE
Singleton instance of file filter
|
private static long |
serialVersionUID |
| Modifier | Constructor and Description |
|---|---|
protected |
FileFileFilter()
Restrictive consructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(java.io.File file)
Checks to see if the file is a file.
|
accept, toStringprivate static final long serialVersionUID
public static final IOFileFilter FILE
public boolean accept(java.io.File file)
accept in interface java.io.FileFilteraccept in interface IOFileFilteraccept in class AbstractFileFilterfile - the File to checkCopyright (c) 2002-2016 Apache Software Foundation