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
cursor
public int cursor
CursorBuffer
public CursorBuffer()
length
public int length()
current
public char current()
clearBuffer
public boolean clearBuffer()
write
public void write(char c)
- Write the specific character into the buffer, setting the cursor position
ahead one. The text may overwrite or insert based on the current setting
of isOvertyping().
- Parameters:
c
- the character to insert
write
public void write(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()
isOvertyping
public boolean isOvertyping()
setOvertyping
public void setOvertyping(boolean b)
getBuffer
public StringBuffer getBuffer()
setBuffer
public void setBuffer(StringBuffer buffer)
Copyright © 2002-2008. All Rights Reserved.