Example usage for org.apache.commons.vfs FileSelector includeFile

List of usage examples for org.apache.commons.vfs FileSelector includeFile

Introduction

In this page you can find the example usage for org.apache.commons.vfs FileSelector includeFile.

Prototype

boolean includeFile(FileSelectInfo fileInfo) throws Exception;

Source Link

Document

Determines if a file or folder should be selected.

Usage

From source file:org.sonatype.gshell.vfs.selector.AggregateFileSelector.java

public boolean includeFile(final FileSelectInfo selection) throws Exception {
    boolean include = true;

    for (FileSelector selector : selectors) {
        if (!selector.includeFile(selection)) {
            include = false;//from   w  w  w  .  j  a v  a  2  s .c o m
            break;
        }
    }

    return include;
}