public class TextManager extends Object
| Constructor and Description |
|---|
TextManager(CharSequence text)
Creates text manager containing given text.
|
TextManager(Reader reader,
int bufferLength)
Creates text manager reading text from given reader.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBufferLength() |
CharSequence |
getText() |
boolean |
hasMoreText() |
void |
readText(int amount)
Deletes given amount of characters from current character buffer and
tries to read up to given amount of new characters and stores them in
current character buffer.
|
public TextManager(CharSequence text)
text - public TextManager(Reader reader, int bufferLength)
reader - bufferLength - read buffer sizepublic int getBufferLength()
public CharSequence getText()
public boolean hasMoreText()
public void readText(int amount)
amount - amount of characters to readIllegalArgumentException - if hasMoreText() returns false or amount is greater than buffer sizeCopyright © 2015. All Rights Reserved.