public class LazilyConcatenatedByteArray
extends java.lang.Object
Constructor and Description |
---|
LazilyConcatenatedByteArray() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the array (sets the concatenated length back to zero.
(清除数组(将串联长度设置回零。)
|
void |
concatenate(byte[] array)
Concatenates an array onto the end of our array.
(将一个数组连接到我们数组的末尾。)
|
void |
concatenate(LazilyConcatenatedByteArray other) |
byte[] |
toArray()
Gets the concatenated contents as a single byte array.
(以单字节数组的形式获取连接的内容。)
|
public void clear()
public void concatenate(byte[] array)
array
- the array to concatenate.
(array - 要连接的数组。)
java.lang.IllegalArgumentException
- if
array
is
null
.
(java.lang.IllegalArgumentException - 如果数组为空。)
public void concatenate(LazilyConcatenatedByteArray other)
public byte[] toArray()
null
if no data has been placed into it.
(字节数组。如果没有放入数据,则返回 null。)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.