This method is intended to be used to obtain configuration, setup, localization and other information from this module. This "module space" is not a namespace with unique members; the same entry name can be present multiple times. This method therefore returns an enumeration 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 module contents do not contain directory entries. @param path The path name in which to look. The path is always relativeto the root of this module and may begin with "/". A path value of "/" indicates the root of this module. @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 null is specified, this is equivalent to "*" and matches all files. @param recurse If {@code true}, recurse into subdirectories. Otherwise only return entries from the specified path. @return An enumeration of URL objects for each matching entry, or{@code null} if no matching entry could be found. @throws IllegalStateException If this module has been uninstalled.
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 and may begin with "/". A path value of "/" indicates the root of this bundle.
@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 null is specified, this is equivalent to "*" and matches all files.
@param recurse If true
, recurse into subdirectories.Otherwise only return entries from the specified path.
@return An enumeration of URL objects for each matching entry, ornull
if an entry could not be found or if the caller does not have the appropriate AdminPermission[this,RESOURCE]
, and the Java Runtime Environment supports permissions. The URLs are sorted such that entries from this bundle are returned first followed by the entries from attached fragments in ascending bundle id order. If this bundle is a fragment, then only matching entries in this fragment are returned.
@throws IllegalStateException If this bundle has been uninstalled.
@since 1.3
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)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|