Example usage for java.io FileFilter interface-usage

List of usage examples for java.io FileFilter interface-usage

Introduction

In this page you can find the example usage for java.io FileFilter interface-usage.

Usage

From source file com.thruzero.common.core.fs.WildcardFilter.java

/**
 * Matches files, directories or files and directories, using a case-sensitive wildcard, which uses the characters '?' and '*' to represent a single or multiple
 * wildcard characters (note, the apache WildcardFilter matches only files). For more details, see
 * {@link org.apache.commons.io.FilenameUtils#wildcardMatch(java.lang.String, java.lang.String)}
 * 
 * <p>

From source file org.codehaus.httpcache4j.util.DeletingFileFilter.java

/**
 * A file-filter that deletes the files as it traverses the directories.
 *
 * @author <a href="mailto:hamnis@codehaus.org">Erlend Hamnaberg</a>
 * @author last modified by $Author: $
 * @version $Id: $

From source file com.thruzero.common.core.fs.FileAndDirectoryFilter.java

/**
 * A filter consisting of two nested filters, where one is used to filter directories and the other is used to filter
 * files. This filter can be used to wrap existing filters that would prevent traversal of sub-directories. For example,
 * the apache.commons {@code WildcardFilter} rejects all directories, preventing sub-directories from being traversed.
 * However, by passing a {@code DirectoryFileFilter.INSTANCE}, followed by the {@code WildcardFilter}, all
 * sub-directories will be traversed.

From source file net.mitnet.tools.pdf.book.io.FileNameSuffixFileFilter.java

/**
 * File Name Suffix File Filter.
 * 
 * @author Tim Telcik <telcik@gmail.com>
 */
public class FileNameSuffixFileFilter implements FileFilter {

From source file com.github.albfernandez.joinpdf.JoinPdfFileFilter.java

public class JoinPdfFileFilter implements FileFilter {

    public JoinPdfFileFilter() {
        super();
    }

From source file com.thoughtworks.go.legacywrapper.CCProjectFolderFilter.java

public class CCProjectFolderFilter implements FileFilter {
    public boolean accept(File dirFile) {
        if (dirFile.isDirectory()) {
            String[] files = dirFile.list(new CCLogFilter());
            return !ArrayUtils.isEmpty(files);
        }

From source file ryerson.daspub.utility.JSONFileFilter.java

/**
 * JSON file filter.
 * @author dmarques
 */
public class JSONFileFilter implements FileFilter {

From source file net.mitnet.tools.pdf.book.io.FileSuffixExclusionFilter.java

/**
 * File Suffix Exclusion filter.
 * 
 * @author Tim Telcik <telcik@gmail.com>
 */
public class FileSuffixExclusionFilter implements FileFilter {

From source file com.adaptris.core.fs.LastModifiedFilter.java

/**
 * Abstract {@link FileFilter} that accepts files based on the last modified time of the file.
 */
public abstract class LastModifiedFilter implements FileFilter {
    protected transient Logger logR = LoggerFactory.getLogger(this.getClass().getName());

From source file org.carlspring.maven.commons.io.filters.DirectoryFilter.java

/**
 * @author mtodorov
 */
public class DirectoryFilter implements FileFilter {

    private Set<String> includes = new LinkedHashSet<String>();