Package org.jline.reader
Interface Buffer
-
Method Summary
Modifier and TypeMethodDescriptionintatChar(int i) booleanintbackspace(int num) booleanclear()copy()voidintcurrChar()booleancurrChar(int c) intcursor()booleancursor(int position) booleandelete()intdelete(int num) booleandown()intlength()intmove(int num) booleanmoveXY(int dx, int dy) intnextChar()intprevChar()substring(int start) substring(int start, int end) toString()booleanup()voidwrite(int c) voidwrite(int c, boolean overTyping) voidwrite(CharSequence str) voidwrite(CharSequence str, boolean overTyping) voidzeroOut()Clear any internal buffer.
-
Method Details
-
cursor
int cursor() -
atChar
int atChar(int i) -
length
int length() -
currChar
int currChar() -
prevChar
int prevChar() -
nextChar
int nextChar() -
cursor
boolean cursor(int position) -
move
int move(int num) -
up
boolean up() -
down
boolean down() -
moveXY
boolean moveXY(int dx, int dy) -
clear
boolean clear() -
currChar
boolean currChar(int c) -
write
void write(int c) -
write
void write(int c, boolean overTyping) -
write
-
write
-
backspace
boolean backspace() -
backspace
int backspace(int num) -
delete
boolean delete() -
delete
int delete(int num) -
substring
-
substring
-
upToCursor
String upToCursor() -
toString
-
copy
Buffer copy() -
copyFrom
-
zeroOut
void zeroOut()Clear any internal buffer.
-