public class ByteQueue
extends java.lang.Object
implements java.lang.Cloneable
Constructor and Description |
---|
ByteQueue() |
ByteQueue(byte[] b) |
ByteQueue(byte[] b,
int pos,
int length) |
ByteQueue(int initialLength) |
ByteQueue(java.lang.String hex) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
java.lang.Object |
clone() |
java.lang.String |
dumpQueue() |
int |
indexOf(byte b) |
int |
indexOf(byte[] b) |
int |
indexOf(byte[] b,
int start) |
int |
indexOf(byte b,
int start) |
void |
mark() |
int |
peek(byte[] buf) |
int |
peek(byte[] buf,
int pos,
int length) |
byte |
peek(int index) |
byte[] |
peek(int index,
int length) |
byte[] |
peekAll() |
byte |
pop() |
int |
pop(byte[] buf) |
int |
pop(byte[] buf,
int pos,
int length) |
int |
pop(int length) |
byte[] |
popAll() |
short |
popS2B() |
int |
popS4B() |
java.lang.String |
popString(int length,
java.nio.charset.Charset charset) |
int |
popU1B() |
int |
popU2B() |
int |
popU3B() |
long |
popU4B() |
void |
push(byte b) |
void |
push(byte[] b) |
void |
push(byte[] b,
int pos,
int length) |
void |
push(java.nio.ByteBuffer source) |
void |
push(ByteQueue source) |
void |
push(ByteQueue source,
int len) |
void |
push(int i) |
void |
push(long l) |
void |
push(java.lang.String hex) |
void |
pushChar(char c) |
void |
pushDouble(double d) |
void |
pushFloat(float f) |
void |
pushInt(int i) |
void |
pushLong(long l) |
void |
pushS4B(int i)
Push signed 4 bytes.
|
void |
pushShort(short s) |
void |
pushU2B(int i)
Push unsigned 2 bytes.
|
void |
pushU3B(int i)
Push unsigned 3 bytes.
|
void |
pushU4B(long l)
Push unsigned 4 bytes.
|
void |
read(java.io.InputStream in,
int length) |
void |
reset() |
int |
size() |
byte |
tailPop() |
java.lang.String |
toString() |
void |
write(java.io.OutputStream out) |
void |
write(java.io.OutputStream out,
int length) |
public ByteQueue()
public ByteQueue(int initialLength)
public ByteQueue(byte[] b)
public ByteQueue(byte[] b, int pos, int length)
public ByteQueue(java.lang.String hex)
public void push(java.lang.String hex)
public void push(byte b)
public void push(int i)
public void push(long l)
public void pushU2B(int i)
public void pushU3B(int i)
public void pushS4B(int i)
public void pushU4B(long l)
public void pushChar(char c)
public void pushDouble(double d)
public void pushFloat(float f)
public void pushInt(int i)
public void pushLong(long l)
public void pushShort(short s)
public void read(java.io.InputStream in, int length) throws java.io.IOException
java.io.IOException
public void push(byte[] b)
public void push(byte[] b, int pos, int length)
public void push(ByteQueue source)
public void push(ByteQueue source, int len)
public void push(java.nio.ByteBuffer source)
public void mark()
public void reset()
public byte pop()
public int popU1B()
public int popU2B()
public int popU3B()
public short popS2B()
public int popS4B()
public long popU4B()
public int pop(byte[] buf)
public int pop(byte[] buf, int pos, int length)
public int pop(int length)
public java.lang.String popString(int length, java.nio.charset.Charset charset)
public byte[] popAll()
public void write(java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public void write(java.io.OutputStream out, int length) throws java.io.IOException
java.io.IOException
public byte tailPop()
public byte peek(int index)
public byte[] peek(int index, int length)
public byte[] peekAll()
public int peek(byte[] buf)
public int peek(byte[] buf, int pos, int length)
public int indexOf(byte b)
public int indexOf(byte b, int start)
public int indexOf(byte[] b)
public int indexOf(byte[] b, int start)
public int size()
public void clear()
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String dumpQueue()
Copyright © 2014 Infinite Automation Systems. All Rights Reserved.