[greenstone-devel] Using GDBM package

From VoHa.Quang@ait.ac.th
DateFri, 17 Feb 2006 10:11:46 +0700
Subject [greenstone-devel] Using GDBM package
Hi,
Do you have documents or any examples about using the gdbm package? I don’t
understand the "key" and "value" concepts that are used in the gdbm source.

My code:
String dbFile = "test.ldb";
try {
GdbmFile gdbm = new GdbmFile(dbFile, GdbmFile.READER);
Enumeration element = gdbm.keys();
while (element.hasMoreElements()) {
Object o = element.nextElement();
System.out.println(o.toString());
}
} catch (Exception e) {System.out.println(e.toString());}

and result is:
[B@10385c1
[B@42719c
[B@30c221
[B@119298d
[B@f72617
....

if can, pls show me where i can get examples or user-guide document about the
gdbm package.

Thank,

vd

----------------------------------------------------------
This mail sent through AIT WebMail : http://www.ait.ac.th/