| Constructor and Description |
|---|
Cdb(File file)
Constructs constant database reader.
|
Cdb(String filename)
Consructs constant database reader.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
close all resource which is held by this object.
|
byte[] |
find(byte[] key)
Returns value to be associated with the specified key.
|
byte[] |
find(byte[] key,
int offset,
int len)
Returns value to be associated with the specified key.
|
byte[] |
findNext(byte[] key)
Returns next entry to be associated with the specified key.
|
byte[] |
findNext(byte[] key,
int offset,
int len)
Returns next entry to be associated with the specified key.
|
void |
findstart()
Notifies starting of database lookup.
|
public Cdb(File file) throws IOException
file - the file objectIOException - if an I/O error occurspublic Cdb(String filename) throws IOException
filename - filename of databse fileIOException - if an I/O error occurs.public void close()
public void findstart()
public byte[] findNext(byte[] key,
int offset,
int len)
key - key which the specified value to be associatedoffset - offset of keylen - length of lengthpublic byte[] findNext(byte[] key)
key - key which the specified value to be associatedpublic byte[] find(byte[] key,
int offset,
int len)
key - key which the specified value to be associatedoffset - offset of keylen - length of keypublic byte[] find(byte[] key)
key - key which the specified value to be associatedCopyright © 2016 New York University. All rights reserved.