Service Management Framework
Release 3.1

com.ibm.osg.smf.platform
Class BundleFile.File

java.lang.Object
  |
  +--com.ibm.osg.smf.platform.BundleFile
        |
        +--com.ibm.osg.smf.platform.BundleFile.File
Enclosing class:
BundleFile

public static class BundleFile.File
extends BundleFile

Implementation of BundleFile using a File for the bundle storage.


Inner classes inherited from class com.ibm.osg.smf.platform.BundleFile
BundleFile.File, BundleFile.OSMemory
 
Constructor Summary
BundleFile.File(java.io.File file)
          Construct a BundleFile from a file.
 
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.
 
Methods inherited from class com.ibm.osg.smf.platform.BundleFile
toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BundleFile.File

public BundleFile.File(java.io.File file)
                throws java.io.IOException
Construct a BundleFile from a file.
Parameters:
file - A File containing a bundle.
Throws:
java.io.IOException - If an error occurs opening the bundle.
Method Detail

open

public void open()
          throws java.io.IOException
Description copied from class: BundleFile
Open the BundleFile. This method will reopen the BundleFile if it has been previously closed.
Overrides:
open in class BundleFile
Following copied from class: com.ibm.osg.smf.platform.BundleFile
Throws:
java.io.IOException - If an error occurs opening the bundle.

close

public void close()
Description copied from class: BundleFile
Closes the BundleFile.
Overrides:
close in class BundleFile

getEntry

public BundleEntry getEntry(java.lang.String name)
Description copied from class: BundleFile
Returns a BundleEntry object for the named entry in the bundle.
Overrides:
getEntry in class BundleFile
Following copied from class: com.ibm.osg.smf.platform.BundleFile
Parameters:
name - Name of the entry in the bundle.
Returns:
BundleEntry object or null if the entry does not exist in the bundle.

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Description copied from class: BundleFile
Return an InputStream for the bundle.
Overrides:
getInputStream in class BundleFile
Following copied from class: com.ibm.osg.smf.platform.BundleFile
Returns:
InputSteam for complete bundle.
Throws:
java.io.IOException - If an error occurs reading the bundle.

getSize

public long getSize()
Description copied from class: BundleFile
Returns size of the bundle.
Overrides:
getSize in class BundleFile
Following copied from class: com.ibm.osg.smf.platform.BundleFile
Returns:
size of the bundle.

getName

public java.lang.String getName()
Description copied from class: BundleFile
Return name of the bundle.
Overrides:
getName in class BundleFile
Following copied from class: com.ibm.osg.smf.platform.BundleFile
Returns:
name of bundle.

toJxe

public com.ibm.oti.vm.Jxe toJxe()
                         throws com.ibm.oti.vm.JxeException,
                                java.io.IOException
Description copied from class: BundleFile
Create and return a Jxe object for the bundle.

This method is only for use when running on IBM VisualAge Micro Edition.

Overrides:
toJxe in class BundleFile
Following copied from class: com.ibm.osg.smf.platform.BundleFile
Throws:
java.io.IOException - If an error occurs reading the bundle.
com.ibm.oti.vm.JxeException - If an error occurs creating the Jxe object.

Service Management Framework
Release 3.1

Licensed Materials - Property of IBM. (C) Copyright IBM Corp. 2000, 2002 All Rights Reserved. IBM is a registered trademark of IBM Corp.