| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.deegree_impl.io.shpapi.DBaseIndex.Cache
Inner class for the cache. The cache remembers recently used pages.
| Nested Class Summary | |
(package private)  class | 
DBaseIndex.Cache.Item
Inner class for the cache items  | 
| Field Summary | |
private  java.util.LinkedList | 
cacheItems
 | 
private  java.util.Hashtable | 
pages
 | 
| Constructor Summary | |
DBaseIndex.Cache()
Create a new cache  | 
|
| Method Summary | |
 void | 
flush()
Flush the cache (eg. store modified pages)  | 
 DBaseIndex.Page | 
get(int number)
Get a page form the cache  | 
 void | 
insert(int number,
       DBaseIndex.Page p)
Insert a new item into the cache  | 
(package private)  void | 
removeItem()
Remove an item from the cache (this method searches for the last used item)  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
private java.util.Hashtable pages
private java.util.LinkedList cacheItems
| Constructor Detail | 
public DBaseIndex.Cache()
| Method Detail | 
void removeItem()
          throws java.io.IOException
java.io.IOException
public void insert(int number,
                   DBaseIndex.Page p)
            throws java.io.IOException
java.io.IOExceptionpublic DBaseIndex.Page get(int number)
public void flush()
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||