public class NestedDirBundleFile extends BundleFile
For Example:
Bundle-ClassPath: nested.jar,nesteddir/
basefile, PROP_SETPERMS_CMD| Constructor and Description |
|---|
NestedDirBundleFile(BundleFile baseBundlefile,
String cp)
Constructs a NestedDirBundleFile
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the BundleFile.
|
boolean |
containsDir(String dir)
Determines if any BundleEntries exist in the given directory path.
|
BundleEntry |
getEntry(String path)
Locates a file name in this bundle and returns a BundleEntry object
|
Enumeration<String> |
getEntryPaths(String path)
Allows to access the entries of the bundle.
|
File |
getFile(String entry,
boolean nativeCode)
Returns a File for the bundle entry specified by the path.
|
void |
open()
Opens the BundleFiles.
|
fixTrailingSlash, getBaseFile, getResourceURL, getResourceURL, getResourceURL, setPermissions, toStringpublic NestedDirBundleFile(BundleFile baseBundlefile, String cp)
baseBundlefile - the base bundle filecp - public void close()
BundleFileclose in class BundleFilepublic BundleEntry getEntry(String path)
BundleFilegetEntry in class BundleFilepath - path of the entry to locate in the bundlepublic boolean containsDir(String dir)
BundleFilecontainsDir in class BundleFiledir - The directory path to check existence of.public Enumeration<String> getEntryPaths(String path)
BundleFilegetEntryPaths in class BundleFilepath - path of the entry to locate in the bundlepublic File getFile(String entry, boolean nativeCode)
BundleFilegetFile in class BundleFileentry - The path to the entry to locate a File for.nativeCode - true if the path is native code.public void open()
throws IOException
BundleFileopen in class BundleFileIOExceptionCopyright © 2007–2016 The Apache Software Foundation. All rights reserved.