public final class TermIOBuffer extends Object implements Appendable, Iterator<CharSequence>
| Constructor and Description |
|---|
TermIOBuffer(TermIO io) |
| Modifier and Type | Method and Description |
|---|---|
TermIOBuffer |
append(char c) |
TermIOBuffer |
append(CharSequence s) |
TermIOBuffer |
append(CharSequence csq,
int start,
int end) |
void |
clear()
Clears the buffer without doing any echoing.
|
int |
del()
Delete the char under the cursor or return -1 if no char was deleted.
|
int |
getSize()
Returns the total number of chars in the buffer, independently of the cursor position.
|
boolean |
hasNext() |
boolean |
moveLeft() |
boolean |
moveRight() |
int |
moveRight(int count) |
CharSequence |
next() |
void |
remove() |
public TermIOBuffer(TermIO io)
public void clear()
public int getSize()
public boolean hasNext()
hasNext in interface Iterator<CharSequence>public CharSequence next()
next in interface Iterator<CharSequence>public void remove()
remove in interface Iterator<CharSequence>public TermIOBuffer append(char c) throws IOException
append in interface AppendableIOExceptionpublic TermIOBuffer append(CharSequence s) throws IOException
append in interface AppendableIOExceptionpublic TermIOBuffer append(CharSequence csq, int start, int end) throws IOException
append in interface AppendableIOExceptionpublic boolean moveRight()
throws IOException
IOExceptionpublic boolean moveLeft()
throws IOException
IOExceptionpublic int moveRight(int count)
throws IOException,
IllegalArgumentException
IOExceptionIllegalArgumentExceptionpublic int del()
throws IOException
IOException - any IOExceptionCopyright © 2015 eXo Platform SAS. All Rights Reserved.