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 Main.java

class HTMLFileFilter implements FileFilter {

    public boolean accept(File pathname) {

        if (pathname.getName().endsWith(".html"))
            return true;

From source file org.jboss.windup.rules.apps.java.scan.operation.IdentifiedArchiveFileFilter.java

/**
 * Accepts certain known files from an archive, like MANIFEST.MF, Maven related, and licenses.
 */
public class IdentifiedArchiveFileFilter implements FileFilter {
    private static final Logger LOG = Logging.get(IdentifiedArchiveFileFilter.class);

From source file MainClass.java

class HTMLFileFilter implements FileFilter {

    public boolean accept(File pathname) {

        if (pathname.getName().endsWith(".html"))
            return true;

From source file jlib.polling.MaskFileFilter.java

/**
 *
 * @author Pierre-Jean Ditscheid, Consultas SA
 * @version $Id$
 */
public class MaskFileFilter implements FileFilter {

From source file se.unlogic.hierarchy.foregroundmodules.gallery.ImageFileFilter.java

public class ImageFileFilter implements FileFilter {

    public boolean accept(File file) {

        return isValidFilename(file.getName());
    }

From source file se.unlogic.hierarchy.foregroundmodules.imagegallery.SimpleFileFilter.java

public class SimpleFileFilter implements FileFilter {
    @Override
    public boolean accept(File file) {

        return isValidFilename(file.getName());

From source file org.sventon.appl.SventonConfigDirectoryFileFilter.java

/**
 * File filter that accepts sventon configuration directories.
 */
class SventonConfigDirectoryFileFilter implements FileFilter {

    /**

From source file org.ebayopensource.turmeric.plugins.maven.utils.AddMatchingFilesFilter.java

public class AddMatchingFilesFilter implements FileFilter {
    private Log log;
    private File basedir;
    private String basedirname;
    private int basedirnamelength;
    private List<File> hits;

From source file org.ebayopensource.turmeric.maven.banrefs.filters.TextFileFilter.java

public class TextFileFilter implements FileFilter {
    public static final TextFileFilter INSTANCE = new TextFileFilter();
    private Set<String> knownTextFileExtensions = new HashSet<String>();

    public TextFileFilter() {
        knownTextFileExtensions.add("txt");

From source file com.book.identification.FileFilter.java

public class FileFilter implements java.io.FileFilter {

    private final EnumSet<FileType> fileTypes;

    public FileFilter(FileType... fileType) {
        super();