public final class ResourceUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static List<URI> |
findResources(String resourceLocation)
Search the specified location in classpath, all the resources found are collected and returned.
|
static List<URI> |
findResources(String resourceLocation,
java.util.function.Predicate<Path> filter)
Search the specified location in classpath, which can be a directory or the exact file location,
and returns a list of URIs pointing to the matched resources.
|
static List<URI> |
findResourcesBySuffix(String resourceLocation,
String fileNameSuffix)
Search the specified location in classpath, and returns the resources with the specified suffix.
|
public static List<URI> findResourcesBySuffix(String resourceLocation, String fileNameSuffix) throws IOException, URISyntaxException
IOExceptionURISyntaxExceptionpublic static List<URI> findResources(String resourceLocation) throws IOException, URISyntaxException
IOExceptionURISyntaxExceptionpublic static List<URI> findResources(String resourceLocation, java.util.function.Predicate<Path> filter) throws IOException, URISyntaxException
resourceLocation - in which location the resources are searchedfilter - to pick out those matched resourcesIOExceptionURISyntaxExceptionCopyright © 2017–2021 The Apache Software Foundation. All rights reserved.