public interface BundleFile
Modifier and Type | Method and Description |
---|---|
void |
close()
Close underlying file resources *
|
Enumeration<URL> |
findEntries(String name,
String pattern,
boolean recurse)
Finds entries in that bundle.
|
Collection<BundleFile> |
findNestedBundles(File tmpDir)
Get a list with nested bundles or null if none.
|
URL |
getEntry(String name)
Gets the entry at the given path in this bundle.
|
Enumeration<String> |
getEntryPaths(String path)
Returns an Enumeration of all the paths (
String objects) to entries within the bundle whose longest
sub-path matches the supplied path argument. |
File |
getFile()
Gets the current location of the bundle as a file.
|
String |
getFileName()
Gets the original file name of this bundle.
|
String |
getLocation()
Gets the original location of this bundle.
|
Manifest |
getManifest()
Gets the bundle manifest.
|
Collection<BundleFile> |
getNestedBundles(File tmpDir)
Gets a list with nested bundles or null if none.
|
String |
getSymbolicName()
Gets this bundle symbolic name.
|
URL |
getURL()
Gets the current location of the bundle as an URL (it may be different from the original location).
|
boolean |
isDirectory()
Checks if this bundle is a directory (an exploded jar).
|
boolean |
isJar()
Checks if this bundle is a JAR.
|
boolean isJar()
boolean isDirectory()
String getSymbolicName()
String getFileName()
String getLocation()
This is an URI string pointing to the original locatioon of the bundle.
URL getURL()
File getFile()
Manifest getManifest()
URL getEntry(String name)
Bundle.getEntry(String)
Enumeration<String> getEntryPaths(String path)
String
objects) to entries within the bundle whose longest
sub-path matches the supplied path argument.Bundle.getEntryPaths(String)
Enumeration<URL> findEntries(String name, String pattern, boolean recurse)
Bundle.findEntries(String, String, boolean)
Collection<BundleFile> getNestedBundles(File tmpDir) throws IOException
tmpDir
- optional temporary dir if the nested bundle should be extracted from an archiveIOException
Collection<BundleFile> findNestedBundles(File tmpDir) throws IOException
tmpDir
- optional temporary dir if the nested bundle should be extracted from an archiveIOException
void close() throws IOException
IOException
Copyright © 2018 Nuxeo. All rights reserved.