TermVectorOffsetInfo[] tmp = info;
info = new TermVectorOffsetInfo[tmp.length + 1];
System.arraycopy(tmp, 0, info, 0, tmp.length);
}
info[info.length - 1] = new TermVectorOffsetInfo(
t.startOffset(), t.endOffset());
termMap.put(termText, info);
}
} catch (IOException e) {
// should never happen, we are reading from a string
}