Preconditions.checkNotNull(fs);
FSDataInputStream in = fs.open(p);
// The docnos start at one, so we need an array that's one larger than number of docs.
int sz = in.readInt() + 1;
String[] arr = new String[sz];
for (int i = 1; i < sz; i++) {
arr[i] = in.readUTF();
}