All Packages Class Hierarchy This Package Previous Next Index
au.com.pharos.gdbm.GdbmDictionary
This is a separate class which defers most operations to GdbmFile because GdbmFile can throw IO exceptions, and because the interface assumptions for Dictionary are not the same as those of the IO library. Perhaps they should be the same.
The Dictionary class will be partially replaced by the much more elegant Collections API in JDK1.2, at which time a GDBM Collections interface will probably be available.
public GdbmDictionary(GdbmFile db)
public Exception checkError()size
public int size()isEmpty
public boolean isEmpty()keys
public Enumeration keys()elements
public Enumeration elements()get
public Object get(Object key)put
public Object put(Object key, Object value)remove
public Object remove(Object key)close
public void close()
public void sync()
All Packages Class Hierarchy This Package Previous Next Index