Example usage for org.apache.commons.io.filefilter WildcardFileFilter accept

List of usage examples for org.apache.commons.io.filefilter WildcardFileFilter accept

Introduction

In this page you can find the example usage for org.apache.commons.io.filefilter WildcardFileFilter accept.

Prototype

public boolean accept(File dir, String name) 

Source Link

Document

Checks to see if the filename matches one of the wildcards.

Usage

From source file:org.kalypso.contribs.java.io.FilePattern.java

public boolean matches(final String filename) {
    final String[] wildcards = StringUtils.split(m_pattern, ';');
    final WildcardFileFilter filter = new WildcardFileFilter(wildcards);
    return filter.accept(null, filename);
}