public class Buffer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
byte[] |
buffer |
(package private) int |
index |
(package private) int |
s |
(package private) byte[] |
tmp |
Constructor and Description |
---|
Buffer() |
Buffer(byte[] buffer) |
Buffer(int size) |
Modifier and Type | Method and Description |
---|---|
void |
checkFreeSize(int n) |
int |
getByte() |
void |
getByte(byte[] foo) |
(package private) void |
getByte(byte[] foo,
int start,
int len) |
int |
getByte(int len) |
(package private) byte |
getCommand() |
int |
getInt() |
int |
getLength() |
long |
getLong() |
byte[] |
getMPInt() |
byte[] |
getMPIntBits() |
int |
getOffSet() |
(package private) int |
getShort() |
byte[] |
getString() |
(package private) byte[] |
getString(int[] start,
int[] len) |
long |
getUInt() |
(package private) void |
insertLength() |
void |
putByte(byte foo) |
void |
putByte(byte[] foo) |
void |
putByte(byte[] foo,
int begin,
int length) |
void |
putInt(int val) |
void |
putLong(long val) |
void |
putMPInt(byte[] foo) |
(package private) void |
putPad(int n) |
void |
putString(byte[] foo) |
void |
putString(byte[] foo,
int begin,
int length) |
void |
reset() |
void |
rewind() |
void |
setOffSet(int s) |
void |
shift() |
(package private) void |
skip(int n) |
public Buffer(int size)
public Buffer(byte[] buffer)
public Buffer()
public void putByte(byte foo)
public void putByte(byte[] foo)
public void putByte(byte[] foo, int begin, int length)
public void putString(byte[] foo)
public void putString(byte[] foo, int begin, int length)
public void putInt(int val)
public void putLong(long val)
void skip(int n)
void putPad(int n)
public void putMPInt(byte[] foo)
public int getLength()
public int getOffSet()
public void setOffSet(int s)
public long getLong()
public int getInt()
public long getUInt()
int getShort()
public int getByte()
public void getByte(byte[] foo)
void getByte(byte[] foo, int start, int len)
public int getByte(int len)
public byte[] getMPInt()
public byte[] getMPIntBits()
public byte[] getString()
byte[] getString(int[] start, int[] len)
public void reset()
public void shift()
public void rewind()
byte getCommand()
public void checkFreeSize(int n)
void insertLength()