This method takes into account that the "contents" of this bundle wiring can have attached fragments. This "bundle space" is not a namespace with unique members; the same entry name can be present multiple times. This method therefore returns a list of URL objects. These URLs can come from different JARs but have the same path name. This method can either return only entries in the specified path or recurse into subdirectories returning entries in the directory tree beginning at the specified path.
URLs for directory entries must have their path end with "/".
Note: Jar and zip files are not required to include directory entries. URLs to directory entries will not be returned if the bundle contents do not contain directory entries. @param path The path name in which to look. The path is always relativeto the root of this bundle wiring and may begin with "/". A path value of "/" indicates the root of this bundle wiring. @param filePattern The file name pattern for selecting entries in thespecified path. The pattern is only matched against the last element of the entry path. If the entry is a directory then the trailing "/" is not used for pattern matching. Substring matching is supported, as specified in the Filter specification, using the wildcard character ("*"). If {@code null} isspecified, this is equivalent to "*" and matches all files. @param options The options for listing resource names. See{@link #FINDENTRIES_RECURSE}. The method must ignore unrecognized options. @return An unmodifiable list of URL objects for each matching entry, oran empty list if no matching entry could be found, if this bundle wiring is for a fragment revision or if the caller does not have the appropriate {@code AdminPermission[bundle,RESOURCE]} and theJava Runtime Environment supports permissions. The list is ordered such that entries from the {@link #getRevision() bundlerevision} are returned first followed by the entries fromattached fragment revisions in attachment order. If this bundle wiring is not {@link #isInUse() in use}, {@code null} must bereturned. @see Bundle#findEntries(String,String,boolean)
|
|