// Store the break points in cachedBreakPositions.
cachedBreakPositions = new int[foundBreaks.size() + 2];
cachedBreakPositions[0] = rangeStart;
int i;
for (i = 0; i < foundBreaks.size(); i++) {
cachedBreakPositions[i + 1] = ((Integer)foundBreaks.elementAt(i)).intValue();
}
cachedBreakPositions[i + 1] = rangeEnd;
positionInCache = 0;
return wordsFound;