public class CircularBuffer
extends java.lang.Object
| Constructor and Description |
|---|
CircularBuffer(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
int |
capacityAvailable() |
void |
clear() |
int |
dataAvailable()
Gets the number of bytes that can be read.
|
int |
fill(java.nio.ByteBuffer fillFrom)
Copies from the given ByteBuffer.
|
int |
read(java.nio.ByteBuffer toFill)
Copies into the given ByteBuffer.
|
java.lang.String |
toString() |
public void clear()
public int read(java.nio.ByteBuffer toFill)
toFill - The ByteBuffer to fill into.public int fill(java.nio.ByteBuffer fillFrom)
fillFrom - The ByteBuffer to read from.public int dataAvailable()
public int capacityAvailable()
public java.lang.String toString()
toString in class java.lang.Object