public final class Util
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static LineMap |
lineMap(ReadTextBuffer textBuffer)
Creates a line map for the specified text buffer.
|
public static LineMap lineMap(ReadTextBuffer textBuffer)
This method can be used to obtain a LineMap for any
ReadTextBuffer, in contrast to TextBuffer.getLineMap(),
which is not available on ReadTextBuffer.
For compatibility reasons, the ReadTextBuffer interface cannot
be modified to add a getLineMap() method.
Note that this method does not guarantee any caching behavior.
textBuffer - a text buffer.java.lang.NullPointerException - if textBuffer is null.