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.solmix.commons.util.Files.java

class ExtensionFileFilter implements FileFilter {

    private final String extension;

    public ExtensionFileFilter(String extension) {
        this.extension = extension;

From source file com.multimedia.service.wallpaper.CmsWallpaperService.java

final class OnlyFilesFilter implements FileFilter {

    @Override
    public boolean accept(File pathname) {
        return pathname.isFile();
    }

From source file org.java.plugin.standard.ShadingPathResolver.java

final class RegexpFileFilter implements FileFilter {
    private final Pattern[] patterns;

    RegexpFileFilter(final String str) {
        StringTokenizer st = new StringTokenizer(str, "|", false); //$NON-NLS-1$
        patterns = new Pattern[st.countTokens()];