A public interface defining a class that can resolve files
Type | Name and description |
---|---|
AssetFile |
getAsset(String relativePath, String contentType, String extension, AssetFile baseFile) Resolves a file given a relative path to this particular resolver |
AssetFile |
getAsset(String relativePath, String contentType) Resolves a file given a relative path to this particular resolver |
AssetFile |
getAsset(String relativePath) Resolves a file given a relative path to this particular resolver |
List<AssetFile> |
getAssets(String basePath, String contentType, String extension, Boolean recursive, AssetFile relativeFile, AssetFile baseFile) Resolves multiple files given a basePath and content type |
List<AssetFile> |
getAssets(String basePath, String contentType, String extension) |
List<AssetFile> |
getAssets(String basePath, String contentType) |
List<AssetFile> |
getAssets(String basePath) |
String |
getName() |
Collection<AssetFile> |
scanForFiles(List<String> excludePatterns, List<String> includePatterns) |
Resolves a file given a relative path to this particular resolver
relativePath
- The relative path to resolve the file fromcontentType
- Optional contentType filterextension
- The extension of the file if not in the relativePathbaseFile
- baseFile to be appended to resultant AssetFile objectResolves a file given a relative path to this particular resolver
relativePath
- The relative path to resolve the file fromcontentType
- Optional contentType filter* Resolves a file given a relative path to this particular resolver
relativePath
- The relative path to resolve the file fromResolves multiple files given a basePath and content type
basePath
- String containing the base prefix pathcontentType
- String containing the contentType filterextension
- String containing the target extension