Class FileGlobResolver

java.lang.Object
dev.enola.common.io.resource.stream.FileGlobResolver
All Implemented Interfaces:
GlobResolver, Provider<String,Stream<URI>>, ProviderFromIRI<Stream<URI>>

public class FileGlobResolver extends Object implements GlobResolver
FileGlobResolver is a GlobResolver for a "globbed" file: IRI.

See FileSystem.getPathMatcher(String) for the full (Java) documentation of globs.

For example file:/tmp/*.txt (for all TXT directly in /tmp), or file:/tmp/** (for everything under /tmp), or file:/tmp/**/*.txt (for all TXT in sub-directories of /tmp), or file:/tmp/**.txt (for all TXT in /tmp itself and sub-directories), or similar.

It is also valid to use a file: IRI which is not actually a glob; in that case, it is interpreted as just the given single file or directory.