public class ByteQueue
extends java.lang.Object
Constructor and Description |
---|
ByteQueue() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
dequeue(byte[] data) |
int |
dequeue(byte[] data,
int length) |
int |
dequeue(byte[] data,
int offset,
int length) |
int |
enqueue(byte[] data) |
int |
enqueue(byte[] data,
int length) |
int |
enqueue(byte[] data,
int offset,
int length) |
int |
findKey(int key) |
int |
findKey(int position,
int key) |
int |
findPattern(byte[] pattern) |
int |
findPattern(int position,
byte[] pattern) |
int |
getFront()
Get the front position of the data
|
int |
getPos(int pos) |
int |
getQueueSize() |
int |
getSize()
Get the byte size in the queue
|
int |
getSize(int position) |
int |
getSize(int start,
int end) |
int |
getTail() |
int |
peek() |
int |
peek(int position) |
byte[] |
peek(int start,
int end) |
void |
remove() |
void |
setFront(int front) |
void |
setTail(int tail) |
public int getQueueSize()
public int getPos(int pos)
public int getFront()
public void setFront(int front)
public int getTail()
public void setTail(int tail)
public int getSize()
public int getSize(int position)
public int getSize(int start, int end)
public void clear()
public int enqueue(byte[] data) throws java.lang.Exception
java.lang.Exception
public int enqueue(byte[] data, int length) throws java.lang.Exception
java.lang.Exception
public int enqueue(byte[] data, int offset, int length) throws java.lang.Exception
java.lang.Exception
public int dequeue(byte[] data) throws java.lang.Exception
java.lang.Exception
public int dequeue(byte[] data, int length) throws java.lang.Exception
java.lang.Exception
public int dequeue(byte[] data, int offset, int length) throws java.lang.Exception
java.lang.Exception
public int peek()
public int peek(int position)
public byte[] peek(int start, int end)
public void remove()
public int findKey(int key)
public int findKey(int position, int key)
public int findPattern(byte[] pattern)
public int findPattern(int position, byte[] pattern)