public class ByteBuffer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static byte |
COMMA |
private byte[] |
data |
private static char[] |
DIGITS |
private int |
position |
Constructor and Description |
---|
ByteBuffer(byte[] buf,
int off,
int len) |
ByteBuffer(int length) |
Modifier and Type | Method and Description |
---|---|
void |
advance(int i) |
void |
append(byte chararcter) |
(package private) void |
append(byte[] src1,
int off1,
int len1) |
void |
append(char chararcter) |
void |
append(java.lang.Integer integer) |
void |
comma() |
static byte[] |
copy(byte[] src1,
int off1,
int len1) |
byte[] |
getData() |
int |
getlength() |
static byte[] |
join(byte[] src1,
int off1,
int len1,
byte[] src2,
int off2,
int len2) |
private void |
toHex(int i)
Convert the integer to an unsigned number.
|
java.lang.String |
toString() |
private final byte[] data
private int position
private static final byte COMMA
private static final char[] DIGITS
public ByteBuffer(int length)
public ByteBuffer(byte[] buf, int off, int len)
public void append(char chararcter)
public void append(byte chararcter)
public void comma()
public void advance(int i)
public void append(java.lang.Integer integer)
private void toHex(int i)
i
- the valuepublic byte[] getData()
public int getlength()
public java.lang.String toString()
toString
in class java.lang.Object
public static byte[] copy(byte[] src1, int off1, int len1)
void append(byte[] src1, int off1, int len1)
public static byte[] join(byte[] src1, int off1, int len1, byte[] src2, int off2, int len2)