| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
  |
  +--net.sf.spif.StoreChain
        |
        +--net.sf.spif.optional.IndexedFileStore
A file storage using Jisp.
| Field Summary | 
| Fields inherited from class net.sf.spif.StoreChain | 
| chained | 
| Constructor Summary | |
| IndexedFileStore(java.lang.String fileName)Creates a store with a file name to save data into | |
| IndexedFileStore(java.lang.String fileName,
                 int expectedSize)Creates a store with a file name to save data into | |
| IndexedFileStore(java.lang.String fileName,
                 int expectedSize,
                 int buckets)Creates a store with a file name to save data into | |
| Method Summary | |
|  java.lang.Object | get(Id id,
    boolean writeable)Read an object from file | 
|  Id | put(Id id,
    java.lang.Object object)Writes an object to file | 
|  boolean | remove(Id id)Removes an object. | 
| Methods inherited from class net.sf.spif.StoreChain | 
| clear, equals, getChained, getChained, getChained, hashCode, setChained | 
| Methods inherited from class java.lang.Object | 
| clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public IndexedFileStore(java.lang.String fileName)
                 throws java.io.IOException
public IndexedFileStore(java.lang.String fileName,
                        int expectedSize)
                 throws java.io.IOException
public IndexedFileStore(java.lang.String fileName,
                        int expectedSize,
                        int buckets)
                 throws java.io.IOException
| Method Detail | 
public java.lang.Object get(Id id,
                            boolean writeable)
get in class StoreChainid - the id of the object to return
public Id put(Id id,
              java.lang.Object object)
put in class StoreChainid - the id of the object to put. May be nullobject - the object to put. May be null
public boolean remove(Id id)
StoreChainRemoves an object. Does nothign if the object does not exist.
This default implementation just forwards to the chained. for (optional) use by subclasses.
remove in class StoreChainid - the id of the object to remove
| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||