public class FileFileFilter extends AbstractFileFilter implements java.io.Serializable
File
s 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 FormModifier and Type | Field and Description |
---|---|
static IOFileFilter |
FILE
Singleton instance of file filter
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.io.File file)
Checks to see if the file is a file.
|
accept, toString
public static final IOFileFilter FILE
public boolean accept(java.io.File file)
accept
in interface java.io.FileFilter
accept
in interface IOFileFilter
accept
in class AbstractFileFilter
file
- the File to checkCopyright © 2010 - 2020 Adobe. All Rights Reserved