public class StringWindow
extends java.lang.Object
| Constructor and Description |
|---|
StringWindow() |
| Modifier and Type | Method and Description |
|---|---|
void |
advanceTo(int pos)
Remove characters from the beginning of the window (i.e.
|
void |
append(io.vertx.core.buffer.Buffer buf)
Append data to the window (i.e.
|
java.lang.String |
getChars(int startCharacter,
int endCharacter)
Return a chunk from the window
|
public void append(io.vertx.core.buffer.Buffer buf)
buf - the data to appendpublic java.lang.String getChars(int startCharacter,
int endCharacter)
startCharacter - the start position of the chunk (in characters and
not bytes). This value is absolute to the position in the larger input
stream the window is being moved over.endCharacter - the end position of the chunk (in characters and not
bytes). This value is absolute to the position in the larger input stream
the window is being moved over.public void advanceTo(int pos)
pos - the number of characters to remove (or in other words: the number
of characters to advance the window forward without changing its end)