|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.osgi.JarBundleFile
public class JarBundleFile
Constructor Summary | |
---|---|
JarBundleFile(java.io.File file)
|
|
JarBundleFile(java.util.jar.JarFile jarFile)
|
Method Summary | |
---|---|
static void |
extractNestedJar(java.util.jar.JarFile file,
java.lang.String path,
java.io.File dest)
|
static void |
extractNestedJar(java.util.jar.JarFile file,
java.util.zip.ZipEntry entry,
java.io.File dest)
|
java.util.Enumeration<java.net.URL> |
findEntries(java.lang.String name,
java.lang.String pattern,
boolean recurse)
Finds entries in that bundle. |
java.util.Collection<BundleFile> |
findNestedBundles(java.io.File tmpDir)
Get a list with nested bundles or null if none. |
java.net.URL |
getEntry(java.lang.String name)
Gets the entry at the given path in this bundle. |
java.util.Enumeration<java.lang.String> |
getEntryPaths(java.lang.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. |
java.io.File |
getFile()
Gets the current location of the bundle as a file. |
java.lang.String |
getFileName()
Gets the original file name of this bundle. |
java.net.URL |
getJarURL()
|
java.lang.String |
getLocation()
Gets the original location of this bundle. |
java.util.jar.Manifest |
getManifest()
Gets the bundle manifest. |
java.util.Collection<BundleFile> |
getNestedBundles(java.io.File tmpDir)
Gets a list with nested bundles or null if none. |
java.lang.String |
getSymbolicName()
Gets this bundle symbolic name. |
java.net.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. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JarBundleFile(java.io.File file) throws java.io.IOException
java.io.IOException
public JarBundleFile(java.util.jar.JarFile jarFile)
Method Detail |
---|
public java.util.Enumeration<java.net.URL> findEntries(java.lang.String name, java.lang.String pattern, boolean recurse)
BundleFile
findEntries
in interface BundleFile
Bundle.findEntries(String, String, boolean)
public java.net.URL getEntry(java.lang.String name)
BundleFile
getEntry
in interface BundleFile
Bundle.getEntry(String)
public java.util.Enumeration<java.lang.String> getEntryPaths(java.lang.String path)
BundleFile
String
objects)
to entries within the bundle whose longest sub-path matches the supplied
path argument.
getEntryPaths
in interface BundleFile
Bundle.getEntryPaths(String)
public java.io.File getFile()
BundleFile
getFile
in interface BundleFile
public java.lang.String getFileName()
BundleFile
getFileName
in interface BundleFile
public java.lang.String getLocation()
BundleFile
This is an URI string pointing to the original locatioon of the bundle.
getLocation
in interface BundleFile
public java.util.jar.Manifest getManifest()
BundleFile
getManifest
in interface BundleFile
public java.util.Collection<BundleFile> getNestedBundles(java.io.File tmpDir) throws java.io.IOException
BundleFile
getNestedBundles
in interface BundleFile
tmpDir
- optional temporary dir if the nested bundle should be
extracted from an archive
java.io.IOException
public static void extractNestedJar(java.util.jar.JarFile file, java.lang.String path, java.io.File dest) throws java.io.IOException
java.io.IOException
public static void extractNestedJar(java.util.jar.JarFile file, java.util.zip.ZipEntry entry, java.io.File dest) throws java.io.IOException
java.io.IOException
public java.util.Collection<BundleFile> findNestedBundles(java.io.File tmpDir) throws java.io.IOException
BundleFile
findNestedBundles
in interface BundleFile
tmpDir
- optional temporary dir if the nested bundle should be
extracted from an archive
java.io.IOException
public java.lang.String getSymbolicName()
BundleFile
getSymbolicName
in interface BundleFile
public java.net.URL getURL()
BundleFile
getURL
in interface BundleFile
public java.net.URL getJarURL()
public boolean isDirectory()
BundleFile
isDirectory
in interface BundleFile
public boolean isJar()
BundleFile
isJar
in interface BundleFile
public java.lang.String toString()
toString
in class java.lang.Object
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |