|
Service Management Framework Release 3.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.osg.smf.platform.BundleFile
This class represents a bundle file.
This class should be subclassed to model bundle files in different data stores.
The bundle may be in JAR format or JXE format, when running on IBM VisualAge Micro Edition.
Inner Class Summary | |
static class |
BundleFile.File
Implementation of BundleFile using a File for the bundle storage. |
static class |
BundleFile.OSMemory
Implementation of BundleFile using an OSMemory for the bundle storage. |
Constructor Summary | |
BundleFile()
Default constructor for subclasses to use. |
Method Summary | |
void |
close()
Closes the BundleFile. |
BundleEntry |
getEntry(java.lang.String name)
Returns a BundleEntry object for the named entry in the bundle. |
java.io.InputStream |
getInputStream()
Return an InputStream for the bundle. |
java.lang.String |
getName()
Return name of the bundle. |
long |
getSize()
Returns size of the bundle. |
void |
open()
Open the BundleFile. |
com.ibm.oti.vm.Jxe |
toJxe()
Create and return a Jxe object for the bundle. |
java.lang.String |
toString()
Return the name of this BundleFile by calling getName(). |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public BundleFile()
Method Detail |
public void open() throws java.io.IOException
java.io.IOException
- If an error occurs opening the bundle.public void close()
public BundleEntry getEntry(java.lang.String name)
name
- Name of the entry in the bundle.public java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
- If an error occurs reading the bundle.public long getSize()
public java.lang.String getName()
public com.ibm.oti.vm.Jxe toJxe() throws com.ibm.oti.vm.JxeException, java.io.IOException
This method is only for use when running on IBM VisualAge Micro Edition.
java.io.IOException
- If an error occurs reading the bundle.com.ibm.oti.vm.JxeException
- If an error occurs creating the Jxe object.public java.lang.String toString()
toString
in class java.lang.Object
|
Service Management Framework Release 3.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |