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 org.eu.gasp.core.util.ExtensionFileFilter.java

/**
 * File filter for files ending with some extension. This file filter is not
 * case sensitive.
 */
public class ExtensionFileFilter implements FileFilter {
    private final String extension;

From source file org.impalaframework.file.monitor.MonitorFileFilter.java

/**
 * Implementation of {@link FileFilter} which uses includes and excludes passed in via constructor
 * to determine whether a particular file should be accepted in {@link #accept(File)}.
 * 
 * Note that if file name ends with one of the includes list, {@link #accept(File)} will return true
 * Otherwise, if file name ends with one of the excludes list, {@link #accept(File)} will return false

From source file org.cleverbus.admin.services.log.LogFileFilter.java

/**
 * Lop file filter based on regular expression pattern.
 *
 * @author <a href="mailto:tomas.hanus@cleverlance.com">Tomas Hanus</a>
 * @since 0.4
 */

From source file es.urjc.mctwp.image.impl.collection.fs.ImageContentFileFilter.java

public class ImageContentFileFilter implements FileFilter {

    @Override
    public boolean accept(File pathname) {
        String ext = StringUtils.substringAfterLast(pathname.getName(), FilenameUtils.EXTENSION_SEPARATOR_STR);
        return (ext == null) ? false : (!ext.equals(ThumbNail.TBN_EXT));

From source file com.arcbees.gwtpolymer.fs.CopyPolymerFilter.java

public class CopyPolymerFilter implements FileFilter {
    static final List<String> NAMES_TO_IGNORE;

    static {
        NAMES_TO_IGNORE = new ArrayList<>();
        NAMES_TO_IGNORE.add("elements.html");

From source file org.apache.torque.generator.file.WildcardFilter.java

/**
 * A filter evaluating a file name against a wildcard expression.
 */
public class WildcardFilter implements FileFilter {
    /**
     * The wildcard expression against which the file names are

From source file org.jasig.portal.utils.PatternSetFileFilter.java

/**
 * FilenameFilter that uses a Set of regular expressions for testing. The file name
 * must match any one of the patterns
 * 
 * @author Eric Dalquist
 * @version $Revision$

From source file org.foi.uzdiz.jFS.VFSNodes.VFSDirectory.java

/**
 *
 * @author ipusic
 */
public class VFSDirectory extends VFSNode implements FileFilter {

From source file $.LogFileFilter.java

    /**
     * Lop file filter based on regular expression pattern.
     *
     * @author <a href="mailto:tomas.hanus@cleverlance.com">Tomas Hanus</a>
     * @since 0.4
     */

From source file FileSuffixFilter.java

/**
 * A <em>suffix</em> based file filter.
 * 
 * @version <tt>$Revision: 1958 $</tt>
 * @author <a href="mailto:jason@planet57.com">Jason Dillon</a>
 */