public class MutableData extends Data implements MutableByteArray
MutableByteArray.Helperhelper| Constructor and Description |
|---|
MutableData() |
MutableData(byte[] bytes) |
MutableData(byte[] bytes,
int offset,
int size) |
MutableData(ByteArray data) |
MutableData(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
append(byte element) |
void |
append(byte[]... sources) |
void |
append(byte[] source) |
void |
append(byte[] source,
int start) |
void |
append(byte[] source,
int start,
int end)
Append values from source buffer with range [start, end)
|
void |
append(ByteArray... sources) |
void |
append(ByteArray source) |
void |
append(ByteArray source,
int start) |
void |
append(ByteArray source,
int start,
int end) |
void |
append(char element)
Append the element to the tail
|
void |
insert(int index,
byte value)
Insert the value to this position
|
void |
insert(int index,
byte[] source) |
void |
insert(int index,
byte[] source,
int start) |
void |
insert(int index,
byte[] source,
int start,
int end)
Insert values from source buffer with range [start, end)
|
void |
insert(int index,
ByteArray source) |
void |
insert(int index,
ByteArray source,
int start) |
void |
insert(int index,
ByteArray source,
int start,
int end) |
byte |
pop()
Remove element from the tail position and return its value
|
void |
push(byte element) |
byte |
remove(int index)
Remove element at this position and return its value
|
void |
setByte(int index,
byte value)
Change byte value at this position
|
void |
setChar(int index,
char value) |
byte |
shift()
Remove element from the head position and return its value
|
void |
update(int index,
byte[] source) |
void |
update(int index,
byte[] source,
int start) |
void |
update(int index,
byte[] source,
int start,
int end)
Update values from source buffer with range [start, end)
|
void |
update(int index,
ByteArray source) |
void |
update(int index,
ByteArray source,
int start) |
void |
update(int index,
ByteArray source,
int start,
int end) |
clone, concat, concat, equals, equals, equals, equals, find, find, find, find, find, find, find, find, find, find, find, find, getBuffer, getByte, getBytes, getBytes, getBytes, getOffset, getSize, hashCode, mutableCopy, random, slice, slice, toHexString, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitinsert, insert, remove, updateadjust, adjustE, concat, concat, concat, concat, equals, equals, equals, find, find, find, find, find, find, find, find, find, find, find, find, find, find, getBuffer, getByte, getBytes, getBytes, getBytes, getOffset, getSize, hexEncode, slice, slice, slice, slice, toHexStringpublic MutableData(ByteArray data)
public MutableData(byte[] bytes)
public MutableData(byte[] bytes,
int offset,
int size)
public MutableData(int capacity)
public MutableData()
public void setChar(int index,
char value)
setChar in interface MutableByteArraypublic void setByte(int index,
byte value)
MutableByteArraysetByte in interface MutableByteArrayindex - - positionvalue - - byte valuepublic void update(int index,
byte[] source,
int start,
int end)
MutableByteArrayupdate in interface MutableByteArrayindex - - update buffer from this relative positionsource - - source bufferstart - - source start position (include)end - - source end position (exclude)public void update(int index,
byte[] source,
int start)
update in interface MutableByteArraypublic void update(int index,
byte[] source)
update in interface MutableByteArraypublic void update(int index,
ByteArray source,
int start,
int end)
update in interface MutableByteArraypublic void update(int index,
ByteArray source,
int start)
update in interface MutableByteArraypublic void update(int index,
ByteArray source)
update in interface MutableByteArraypublic void append(byte[] source,
int start,
int end)
MutableByteArrayappend in interface MutableByteArraysource - - source bufferstart - - source start position (include)end - - source end position (exclude)public void append(byte[] source,
int start)
append in interface MutableByteArraypublic void append(byte[] source)
append in interface MutableByteArraypublic void append(byte[]... sources)
append in interface MutableByteArraypublic void append(ByteArray source, int start, int end)
append in interface MutableByteArraypublic void append(ByteArray source, int start)
append in interface MutableByteArraypublic void append(ByteArray source)
append in interface MutableByteArraypublic void append(ByteArray... sources)
append in interface MutableByteArraypublic void insert(int index,
byte[] source,
int start,
int end)
MutableByteArrayinsert in interface MutableByteArrayindex - - insert buffer from this relative positionsource - - source bufferstart - - source start position (include)end - - source end position (exclude)public void insert(int index,
byte[] source,
int start)
insert in interface MutableByteArraypublic void insert(int index,
byte[] source)
insert in interface MutableByteArraypublic void insert(int index,
ByteArray source,
int start,
int end)
insert in interface MutableByteArraypublic void insert(int index,
ByteArray source,
int start)
insert in interface MutableByteArraypublic void insert(int index,
ByteArray source)
insert in interface MutableByteArraypublic void insert(int index,
byte value)
insert in interface MutableByteArrayindex - - positionvalue - - byte valuepublic byte remove(int index)
MutableByteArrayremove in interface MutableByteArrayindex - - positionpublic byte shift()
MutableByteArrayshift in interface MutableByteArraypublic byte pop()
MutableByteArraypop in interface MutableByteArraypublic void push(byte element)
push in interface MutableByteArraypublic void append(byte element)
append in interface MutableByteArraypublic void append(char element)
MutableByteArrayappend in interface MutableByteArrayelement - - value