}
public static LineNumberIndex create(CharSequence buffer) {
Pattern p = Pattern.compile("^", Pattern.MULTILINE);
MemoryLogEntryIndex rawIndex = new MemoryLogEntryIndex(buffer, p);
BufferedLogEntryIndex entryIndex = new BufferedLogEntryIndex(rawIndex);
return new BasicLineNumberIndex(entryIndex, buffer);
}