public class BinaryQueue extends Object
| Constructor and Description |
|---|
BinaryQueue() |
BinaryQueue(int qsize) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(byte b) |
void |
add(ByteSource source)
add bytes to the queue.
|
void |
add(ByteSource source,
long sourceoff,
long sourcelen)
add bytes to the queue.
|
void |
addInt(int written) |
long |
available() |
void |
back(int len)
'unread' len bytes
|
long |
capacity() |
protected void |
grow(long sourcelen) |
int |
poll() |
long |
poll(ByteSink destination,
long destoff,
long destlen)
read up to destlen bytes (if available).
|
byte[] |
readByteArray(int len)
convenience method to read len byte array.
|
int |
readInt()
read an int.
|
long |
remaining() |
String |
toString() |
public void add(ByteSource source)
source - public void add(ByteSource source, long sourceoff, long sourcelen)
source - sourceoff - sourcelen - public void addInt(int written)
public void add(byte b)
protected void grow(long sourcelen)
public long remaining()
public long poll(ByteSink destination, long destoff, long destlen)
destination - destoff - destlen - public byte[] readByteArray(int len)
len - public int readInt()
public int poll()
public void back(int len)
len - public long available()
public long capacity()
Copyright © 2015. All rights reserved.