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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|