Class SizeableByteArray
- java.lang.Object
-
- com.aquima.interactions.foundation.security.util.SizeableByteArray
-
public final class SizeableByteArray extends Object
Utility for resizeable byte arrays.- Since:
- 5.1
- Author:
- m.hesselink
-
-
Constructor Summary
Constructors Constructor Description SizeableByteArray()
Create an empty sizeable byte array.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
append(byte[] bytes)
append bytes to the end of this array.void
append(byte[] bytes, int count)
append a number of bytes to the end of this array.int
getLength()
Get the length of this byte array.byte[]
toByteArray()
convert the bytes to a single byte array.
-
-
-
Method Detail
-
append
public void append(byte[] bytes)
append bytes to the end of this array.- Parameters:
bytes
- The bytes that should be appended.
-
append
public void append(byte[] bytes, int count)
append a number of bytes to the end of this array.- Parameters:
bytes
- The bytes array that should be appended.count
- The number of bytes that should be copied from the array.
-
toByteArray
public byte[] toByteArray()
convert the bytes to a single byte array.- Returns:
- byte array containing the entire content.
-
getLength
public int getLength()
Get the length of this byte array.- Returns:
- The length of the byte array.
-
-