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, toString
public NestedDirBundleFile(BundleFile baseBundlefile, String cp)
baseBundlefile
- the base bundle filecp
- public void close()
BundleFile
close
in class BundleFile
public BundleEntry getEntry(String path)
BundleFile
getEntry
in class BundleFile
path
- path of the entry to locate in the bundlepublic boolean containsDir(String dir)
BundleFile
containsDir
in class BundleFile
dir
- The directory path to check existence of.public Enumeration<String> getEntryPaths(String path)
BundleFile
getEntryPaths
in class BundleFile
path
- path of the entry to locate in the bundlepublic File getFile(String entry, boolean nativeCode)
BundleFile
getFile
in class BundleFile
entry
- The path to the entry to locate a File for.nativeCode
- true if the path is native code.public void open() throws IOException
BundleFile
open
in class BundleFile
IOException
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.