public class DirBundleFile extends BundleFile
basefile, PROP_SETPERMS_CMD
Constructor and Description |
---|
DirBundleFile(File basefile,
boolean enableStrictBundleEntryPath)
Constructs a DirBundleFile
|
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.
|
Enumeration<String> |
getEntryPaths(String path,
boolean recurse) |
File |
getFile(String path,
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 DirBundleFile(File basefile, boolean enableStrictBundleEntryPath) throws IOException
basefile
- the base fileIOException
public File getFile(String path, boolean nativeCode)
BundleFile
getFile
in class BundleFile
path
- The path to the entry to locate a File for.nativeCode
- true if the path is native code.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 Enumeration<String> getEntryPaths(String path, boolean recurse)
public void close()
BundleFile
close
in class BundleFile
public void open()
BundleFile
open
in class BundleFile
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.