|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.stanford.nlp.database.AbstractSimpleDatabase | +--edu.stanford.nlp.database.SLJDB
Simple Lightweight Java Database. SimpleDatabase Wrapper for JDBM: Sourcefourge Open Source Java clone for GDBM.
Constructor Summary | |
SLJDB(String file)
|
Method Summary | |
void |
close()
Closes the database for read and write |
Object |
get(Object key)
Gets Object from database |
Iterator |
keys()
Returns an Iterator over keys in database |
void |
open()
Opens the database for read and write |
void |
put(Object key,
Object value)
Inserts Object into database |
void |
remove(Object key)
Removes Object from database |
int |
size()
Returns number of elements in database (slow implementation). |
String |
toString()
Returns String representation of database in the form below. |
String |
toXMLString()
Returns an XML representation of database. |
Iterator |
values()
Returns an Iterator over values in database |
Methods inherited from class edu.stanford.nlp.database.AbstractSimpleDatabase |
toVerboseString, toVerboseXMLString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SLJDB(String file) throws IOException
Method Detail |
public void open() throws IOException
IOException
public void close() throws IOException
IOException
public int size()
public void put(Object key, Object value) throws IOException
SimpleDatabase
IOException
public Object get(Object key) throws IOException
SimpleDatabase
IOException
public void remove(Object key) throws IOException
SimpleDatabase
IOException
public String toString()
toString
in interface SimpleDatabase
toString
in class Object
public String toXMLString()
SimpleDatabase
public Iterator keys()
SimpleDatabase
public Iterator values()
SimpleDatabase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |