public final String getLine(int line) { if (line == 0) { return getLine(0, getEndOffset(0)); } else { int beginIndex = getEndOffset(line - 1) + 1; int endOffset = getEndOffset(line); return getLine(beginIndex, endOffset); }
public final String getLine(int index) { return getLineUpTo(index, getEndOffset(index));
    public final String getLine(int line) {        if (line == 0) {            return getLine(0, getEndOffset(0));        } else {            int beginIndex = getEndOffset(line - 1) + 1;            int endOffset = getEndOffset(line);            return getLine(beginIndex, endOffset);        }    }