public class ResourceHelper extends Object
Modifier and Type | Method and Description |
---|---|
static Stream<File> |
getResourcesByExtension(String extension)
Scan into classpath folders to find resources with the required extension
|
static Stream<File> |
getResourcesFromDirectory(File directory,
Pattern pattern)
Scan folder to find resources that match with pattern
|
public static Stream<File> getResourcesByExtension(String extension)
extension
- to findpublic static Stream<File> getResourcesFromDirectory(File directory, Pattern pattern)
directory
- where to start the searchpattern
- to findIOException
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.