key
. Examine the return code to figure whether we found the key or not. Consider the key stream of all the keys in the file, k[0] .. k[n]
, where there are n keys in the file.
@param key Key to find.
@return -1, if key < k[0], no position;0, such that k[i] = key and scanner is left in position i; and 1, such that k[i] < key, and scanner is left in position i. Furthermore, there may be a k[i+1], such that k[i] < key < k[i+1] but there may not be a k[i+1], and next() will return false (EOF).
@throws IOException
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|