Kie Workbench - Common - Services Backend 6.0.0.Beta3

org.kie.workbench.common.services.backend.file
Interface FileDiscoveryService

All Known Implementing Classes:
FileDiscoveryServiceImpl

public interface FileDiscoveryService

Service to discover files in a given Path


Method Summary
 Collection<org.kie.commons.java.nio.file.Path> discoverFiles(org.kie.commons.java.nio.file.Path pathToSearch, org.kie.commons.java.nio.file.DirectoryStream.Filter<org.kie.commons.java.nio.file.Path> filter)
          Discover files.
 Collection<org.kie.commons.java.nio.file.Path> discoverFiles(org.kie.commons.java.nio.file.Path pathToSearch, org.kie.commons.java.nio.file.DirectoryStream.Filter<org.kie.commons.java.nio.file.Path> filter, boolean recursive)
          Discover files
 

Method Detail

discoverFiles

Collection<org.kie.commons.java.nio.file.Path> discoverFiles(org.kie.commons.java.nio.file.Path pathToSearch,
                                                             org.kie.commons.java.nio.file.DirectoryStream.Filter<org.kie.commons.java.nio.file.Path> filter,
                                                             boolean recursive)
Discover files

Parameters:
pathToSearch - The root Path to search. Sub-folders are not included.
filter - A filter to restrict the matched files.
recursive - True is sub-folders are to be scanned
Returns:

discoverFiles

Collection<org.kie.commons.java.nio.file.Path> discoverFiles(org.kie.commons.java.nio.file.Path pathToSearch,
                                                             org.kie.commons.java.nio.file.DirectoryStream.Filter<org.kie.commons.java.nio.file.Path> filter)
Discover files. Convenience method excluding sub-folders

Parameters:
pathToSearch - The root Path to search. Sub-folders are not included.
filter - A filter to restrict the matched files.
Returns:

Kie Workbench - Common - Services Backend 6.0.0.Beta3

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.