Package org.apache.commons.vfs2.filter
Class FileFileFilter
java.lang.Object
org.apache.commons.vfs2.filter.FileFileFilter
- All Implemented Interfaces:
- Serializable,- FileFilter
This filter accepts 
Files that are files (not directories).
 For example, here is how to print out a list of the real files within the current directory:
 FileSystemManager fsManager = VFS.getManager();
 FileObject dir = fsManager.toFileObject(new File("."));
 FileObject[] files = dir.findFiles(new FileFilterSelector(FileFileFilter.FILE));
 for (int i = 0; i < files.length; i++) {
     System.out.println(files[i]);
 }
 - Since:
- 2.4
- Author:
- This code was originally ported from Apache Commons IO File Filter
- See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanaccept(FileSelectInfo fileSelectInfo) Checks to see if the file is a file.
- 
Field Details- 
FILESingleton instance of file filter.
 
- 
- 
Constructor Details- 
FileFileFilterprotected FileFileFilter()Restrictive constructor.
 
- 
- 
Method Details- 
acceptChecks to see if the file is a file.- Specified by:
- acceptin interface- FileFilter
- Parameters:
- fileSelectInfo- the File to check
- Returns:
- true if the file is a file
- Throws:
- FileSystemException- Thrown for file system errors.
 
 
-