jline
Class CursorBuffer
java.lang.Object
jline.CursorBuffer
- public class CursorBuffer
- extends Object
A CursorBuffer is a holder for a StringBuffer
that
also contains the current cursor position.
- Author:
- Marc Prud'hommeaux
Method Summary |
char |
current()
|
void |
insert(char c)
Insert the specific character into the buffer, setting the
cursor position ahead one. |
void |
insert(String str)
Insert the specified String into the buffer, setting
the cursor to the end of the insertion point. |
int |
length()
|
String |
toString()
|
cursor
public int cursor
buffer
public final StringBuffer buffer
CursorBuffer
public CursorBuffer()
length
public int length()
current
public char current()
insert
public void insert(char c)
- Insert the specific character into the buffer, setting the
cursor position ahead one.
- Parameters:
c
- the character to insert
insert
public void insert(String str)
- Insert the specified
String
into the buffer, setting
the cursor to the end of the insertion point.
- Parameters:
str
- the String to insert. Must not be null.
toString
public String toString()
Released under the terms of the BSD license