Package org.jline.reader
Interface Buffer
- All Known Implementing Classes:
BufferImpl
public interface Buffer
-
Method Summary
Modifier and TypeMethodDescriptionint
atChar
(int i) boolean
int
backspace
(int num) boolean
clear()
copy()
void
int
currChar()
boolean
currChar
(int c) int
cursor()
boolean
cursor
(int position) boolean
delete()
int
delete
(int num) boolean
down()
int
length()
int
move
(int num) boolean
moveXY
(int dx, int dy) int
nextChar()
int
prevChar()
substring
(int start) substring
(int start, int end) toString()
boolean
up()
void
write
(int c) void
write
(int c, boolean overTyping) void
write
(CharSequence str) void
write
(CharSequence str, boolean overTyping) void
zeroOut()
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
String toString() -
copy
Buffer copy() -
copyFrom
-
zeroOut
void zeroOut()Clear any internal buffer.
-