|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BundleArchive
Interface for managing bundle data.
Method Summary | |
---|---|
void |
close()
Close archive and all its open files. |
java.util.Vector |
componentExists(java.lang.String component,
boolean onlyFirst)
Check if named entry exists in the bundle's classpath. |
java.util.Enumeration |
findResourcesPath(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.lang.String |
getAttribute(java.lang.String key)
Get an attribute from the manifest of a bundle. |
long |
getBundleId()
Get bundle identifier for this bundle archive. |
java.lang.String |
getBundleLocation()
Get bundle location for this bundle archive. |
java.security.cert.Certificate[] |
getCertificates()
Get certificates associated with with bundle archive. |
byte[] |
getClassBytes(java.lang.Integer sub,
java.lang.String component)
Get a byte array containg the contents of named file from a bundle archive. |
java.util.List |
getFailedClassPathEntries()
Get a list with all classpath entries we failed to locate. |
java.io.InputStream |
getInputStream(java.lang.String component,
int ix)
Get an specific InputStream to named entry inside a bundle. |
java.lang.String |
getJarLocation()
|
long |
getLastModified()
|
java.util.Hashtable |
getLocalizationEntries(java.lang.String localeFile)
Gets all localization entries from this bundle. |
java.lang.String |
getNativeLibrary(java.lang.String libName)
Extract native library from JAR. |
int |
getStartLevel()
Get stored bundle start level. |
boolean |
getStartOnLaunchFlag()
Get state of start-on-launch flag. |
HeaderDictionary |
getUnlocalizedAttributes()
|
void |
invalidateCertificates()
Invalidate certificates associated with with bundle archive. |
boolean |
isPersistent()
|
void |
purge()
Remove bundle archive from persistent storage. |
void |
setLastModified(long timemillisecs)
|
void |
setPersistent(boolean b)
|
void |
setStartLevel(int level)
Set stored bundle start level. |
void |
setStartOnLaunchFlag(boolean value)
Set state of start-on-launch flag. |
Method Detail |
---|
java.lang.String getAttribute(java.lang.String key)
key
- Name of attribute to get.
java.util.Hashtable getLocalizationEntries(java.lang.String localeFile)
localeFile
- Filename within archive for localization properties.
HeaderDictionary getUnlocalizedAttributes()
long getBundleId()
java.lang.String getBundleLocation()
int getStartLevel()
void setStartLevel(int level) throws java.io.IOException
java.io.IOException
void setPersistent(boolean b) throws java.io.IOException
java.io.IOException
boolean isPersistent()
long getLastModified()
void setLastModified(long timemillisecs) throws java.io.IOException
java.io.IOException
byte[] getClassBytes(java.lang.Integer sub, java.lang.String component) throws java.io.IOException
Integer
- From which sub archive to get.component
- File to get.
java.io.IOException
- if failed to read jar entry.java.util.Vector componentExists(java.lang.String component, boolean onlyFirst)
component
- Entry to get reference to.onlyFirst
- End search when we find first entry if this is true.
java.io.InputStream getInputStream(java.lang.String component, int ix)
component
- Entry to get reference to.ix
- index of sub archives. A postive number is the classpath entry
index. -1 means look in the main bundle.
java.lang.String getNativeLibrary(java.lang.String libName)
libName
- Name of Jar file to get.
boolean getStartOnLaunchFlag()
void setStartOnLaunchFlag(boolean value) throws java.io.IOException
value
- Boolean value for start on launch flag.
java.io.IOException
void purge()
void close()
java.util.List getFailedClassPathEntries()
java.util.Enumeration findResourcesPath(java.lang.String path)
String
objects)
to entries within the bundle whose longest sub-path matches the supplied
path argument.
name
-
java.lang.String getJarLocation()
java.security.cert.Certificate[] getCertificates()
void invalidateCertificates()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |