/** * Creates an {@link Enumeration} that scans the given URLs for resources matching the globbed pattern. * * @param subPath An optional path to begin the search from * @param glob The globbed basename pattern * @param recurse When {@code true} search paths below the initial search point; otherwise don't * @param urls The URLs containing resources */ ResourceEnumeration( final String subPath, final String glob, final boolean recurse, final URL[] urls ) { this.subPath = normalizeSearchPath( subPath ); globber = GlobberStrategy.selectFor( glob ); globPattern = globber.compile( glob ); this.recurse = recurse; this.urls = urls; }