Interface Buffer

All Known Implementing Classes:
BufferImpl

public interface Buffer
Represents the editable text buffer in the LineReader.

The Buffer interface provides methods for manipulating the text that the user is currently editing in the LineReader. It supports operations such as cursor movement, text insertion and deletion, and content retrieval.

The buffer maintains a current cursor position that indicates where text will be inserted or deleted. Many of the methods in this interface operate relative to this cursor position.

The default implementation is BufferImpl.

See Also: