public final class ByteArrayBuffer extends java.lang.Object implements ByteSequence
Description:
Title:首亨软件 - TSS/CRM等
EMPTY
构造器和说明 |
---|
ByteArrayBuffer(byte[] bytes,
boolean dontCopy) |
ByteArrayBuffer(byte[] bytes,
int len,
boolean dontCopy) |
ByteArrayBuffer(int capacity) |
限定符和类型 | 方法和说明 |
---|---|
void |
append(byte[] b,
int off,
int len) |
void |
append(int b) |
byte[] |
buffer() |
byte |
byteAt(int i) |
int |
capacity() |
void |
clear() |
int |
indexOf(byte b) |
int |
indexOf(byte b,
int beginIndex,
int endIndex) |
boolean |
isEmpty() |
boolean |
isFull() |
int |
length()
Returns the length of this byte sequence.
|
void |
remove(int off,
int len) |
void |
setLength(int len) |
byte[] |
toByteArray()
Copies the contents of this byte sequence into a newly allocated byte
array and returns that array.
|
java.lang.String |
toString() |
public ByteArrayBuffer(int capacity)
public ByteArrayBuffer(byte[] bytes, boolean dontCopy)
public ByteArrayBuffer(byte[] bytes, int len, boolean dontCopy)
public void append(byte[] b, int off, int len)
public void append(int b)
public void clear()
public byte[] toByteArray()
ByteSequence
toByteArray
在接口中 ByteSequence
public byte byteAt(int i)
byteAt
在接口中 ByteSequence
public int capacity()
public int length()
ByteSequence
length
在接口中 ByteSequence
byte
s in this sequence.public byte[] buffer()
public int indexOf(byte b)
public int indexOf(byte b, int beginIndex, int endIndex)
public void setLength(int len)
public void remove(int off, int len)
public boolean isEmpty()
public boolean isFull()
public java.lang.String toString()
toString
在类中 java.lang.Object