Service Management Framework
Release 3.1

com.ibm.osg.smf.platform
Class BundleEntry

java.lang.Object
  |
  +--com.ibm.osg.smf.platform.BundleEntry
Direct Known Subclasses:
BundleEntry.OSMemory

public abstract class BundleEntry
extends java.lang.Object

This class represents an entry in a BundleFile. Objects of this type are returned by calling BundleFile.getEntry(String).


Inner Class Summary
static class BundleEntry.OSMemory
          Implementation of BundleEntry using an OSMemory for the storage.
 
Method Summary
abstract  java.io.InputStream getInputStream()
          Return an InputStream for the entry.
abstract  java.lang.String getName()
          Return the name of the entry.
abstract  long getSize()
          Return the size of the entry (uncompressed).
 long getTime()
          Get the modification time for this BundleEntry.
 void setTime(long time)
          Set the modification time for this BundleEntry.
 BundleFile toBundleFile()
          Create a BundleFile object which uses this entry for the bundle storage.
 java.lang.String toString()
          Return the name of this BundleEntry by calling getName().
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getInputStream

public abstract java.io.InputStream getInputStream()
                                            throws java.io.IOException
Return an InputStream for the entry.
Returns:
InputStream for the entry.
Throws:
java.io.IOException - If an error occurs reading the bundle.

getSize

public abstract long getSize()
Return the size of the entry (uncompressed).
Returns:
size of entry.

getName

public abstract java.lang.String getName()
Return the name of the entry.
Returns:
name of entry.

setTime

public void setTime(long time)
Set the modification time for this BundleEntry.
Parameters:
time - last modification time.

getTime

public long getTime()
Get the modification time for this BundleEntry.

If the modification time has not been set, this method will return -1.

Returns:
last modification time.

toString

public java.lang.String toString()
Return the name of this BundleEntry by calling getName().
Overrides:
toString in class java.lang.Object
Returns:
String representation of this BundleEntry.

toBundleFile

public BundleFile toBundleFile()
Create a BundleFile object which uses this entry for the bundle storage.
Returns:
A BundleFile object for this entry.
Since:
3.0.1

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.