public class Window
extends java.lang.Object
| Constructor and Description |
|---|
Window() |
| Modifier and Type | Method and Description |
|---|---|
void |
advanceTo(int pos)
Remove bytes from the beginning of the window (i.e.
|
void |
append(io.vertx.core.buffer.Buffer buf)
Append data to the window (i.e.
|
byte[] |
getBytes(int start,
int end)
Return a chunk from the window
|
public void append(io.vertx.core.buffer.Buffer buf)
buf - the data to appendpublic byte[] getBytes(int start,
int end)
start - the start position of the chunk. This value is absolute to
the position in the larger input stream the window is being moved over.end - the end position of the chunk. 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 bytes to remove (or in other words: the number
of bytes to advance the window forward without changing its end)