List of usage examples for java.io FilenameFilter interface-usage
From source file ExtensionFilter.java
class ExtensionFilter implements FilenameFilter { String ext; public ExtensionFilter(String ext) { this.ext = "." + ext; }
From source file FileListFilter.java
class FileListFilter implements FilenameFilter { private String name; private String extension; public FileListFilter(String name, String extension) { this.name = name;
From source file AndFileFilter.java
/**
* Accepts a selection if it is acceptable to both of two {@link FilenameFilter}s.
* This takes two {@link FilenameFilter}s as input.
*
* <p>Eg., to print all files beginning with <code>A</code> and ending with <code>.java</code>:</p>
*
From source file DirListOnly.java
class OnlyExt implements FilenameFilter { String ext; public OnlyExt(String ext) { this.ext = "." + ext; }
From source file SuffixFilenameFilter.java
/**
* Files filter that filters files by their suffix (or extension).
* It can be used as file filter for {@link javax.swing.JFileChooser} or
* as file filter for io operations (@link java.io.File#listFiles(java.io.FilenameFilter)}.
*
* @version $Name: $ - $Revision: 1.1.1.1 $ - $Date: 2005/04/07 18:36:22 $
From source file Main.java
class MainFilenameFilter implements FilenameFilter { String str; // constructor takes string argument public MainFilenameFilter(String ext) {
From source file MainClass.java
class DirFilter implements FilenameFilter { private Pattern pattern; public DirFilter(String regex) { pattern = Pattern.compile(regex); }
From source file DirList.java
class DirFilter implements FilenameFilter { private Pattern pattern; public DirFilter(String regex) { pattern = Pattern.compile(regex); }
From source file fr.acxio.tools.agia.ftp.RegexFilenameFilter.java
public class RegexFilenameFilter implements FTPFileFilter, FilenameFilter { private Pattern pattern; public void setRegex(String sRegex) { pattern = Pattern.compile(sRegex);
From source file com.thoughtworks.go.legacywrapper.SuccessLogFilter.java
class SuccessLogFilter implements FilenameFilter { public boolean accept(File dir, String name) { return StringUtils.contains(name, "L"); } }