Package net.i2p.util
Class FileSuffixFilter
- java.lang.Object
-
- net.i2p.util.FileSuffixFilter
-
- All Implemented Interfaces:
FileFilter
public class FileSuffixFilter extends Object implements FileFilter
A FileFilter that accepts regular files with a suffix and optionally a prefix, case-insensitive.- Since:
- 0.9.34
-
-
Constructor Summary
Constructors Constructor Description FileSuffixFilter(String suffix)
A filter that accepts regular files that end with suffix, case-insensitive.FileSuffixFilter(String prefix, String suffix)
A filter that accepts regular files that start with prefix and end with suffix, case-insensitive.
-
-
-
Constructor Detail
-
FileSuffixFilter
public FileSuffixFilter(String suffix)
A filter that accepts regular files that end with suffix, case-insensitive.
-
-
Method Detail
-
accept
public boolean accept(File file)
- Specified by:
accept
in interfaceFileFilter
-
-