@ApplicationScoped public class FileDiscoveryServiceImpl extends Object implements FileDiscoveryService
| Constructor and Description |
|---|
FileDiscoveryServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Collection<org.uberfire.java.nio.file.Path> |
discoverFiles(org.uberfire.java.nio.file.Path pathToSearch,
org.uberfire.java.nio.file.DirectoryStream.Filter<org.uberfire.java.nio.file.Path> filter)
Discover files.
|
Collection<org.uberfire.java.nio.file.Path> |
discoverFiles(org.uberfire.java.nio.file.Path pathToSearch,
org.uberfire.java.nio.file.DirectoryStream.Filter<org.uberfire.java.nio.file.Path> filter,
boolean recursive)
Discover files
|
public Collection<org.uberfire.java.nio.file.Path> discoverFiles(org.uberfire.java.nio.file.Path pathToSearch, org.uberfire.java.nio.file.DirectoryStream.Filter<org.uberfire.java.nio.file.Path> filter, boolean recursive)
FileDiscoveryServicediscoverFiles in interface FileDiscoveryServicepathToSearch - 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 scannedpublic Collection<org.uberfire.java.nio.file.Path> discoverFiles(org.uberfire.java.nio.file.Path pathToSearch, org.uberfire.java.nio.file.DirectoryStream.Filter<org.uberfire.java.nio.file.Path> filter)
FileDiscoveryServicediscoverFiles in interface FileDiscoveryServicepathToSearch - The root Path to search. Sub-folders are not included.filter - A filter to restrict the matched files.Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.