return (lineNumber + 1) * (positionRead / linesRead + 1) + 100;
}
}
public static LineNumberIndex create(CharSequence buffer) {
EntryPattern p = new NewLineEntryPattern();
MemoryLogEntryIndex rawIndex = new MemoryLogEntryIndex(buffer, p);
BufferedLogEntryIndex entryIndex = new BufferedLogEntryIndex(rawIndex);
return new BasicLineNumberIndex(entryIndex, buffer);
}