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]);
}
| Modifier and Type | Field and Description |
|---|---|
| public static final IOFileFilter | FILE
Singleton instance of file filter |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the file is a filethe File to check file)Overrides org. Implements org. |
| FILE | back to summary |
|---|---|
| public static final IOFileFilter FILE Singleton instance of file filter | |
| FileFileFilter | back to summary |
|---|---|
| protected FileFileFilter() Restrictive consructor. | |
| accept | back to summary |
|---|---|
| public boolean accept(File file) Overrides org. Implements org. Checks to see if the file is a file.
| |