Constructor and Description |
---|
BinSearch() |
Modifier and Type | Method and Description |
---|---|
static Iterable<String> |
getLinesInFile(File file,
String prefix)
Given a file in sorted order and a prefix to search for, return a an iterable that will return the lines in the
files that start with the prefix, in order.
|
public BinSearch()
public static Iterable<String> getLinesInFile(File file, String prefix)
If no matches are found, it will still return an iterable with no entries.
file
- A CDX file to search in.prefix
- The line prefix to search for.Copyright © 2005–2016 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.